[PATCH 1/2] sh: r2dplus: Enable board_eth_init only for non-DM case

Marek Vasut marek.vasut at gmail.com
Sat May 9 22:37:28 CEST 2020


The board_eth_init() is not used for DM case, enable it only for
the non-DM case. This function should eventually be removed.

Signed-off-by: Marek Vasut <marek.vasut+renesas at gmail.com>
Cc: Nobuhiro Iwamatsu <iwamatsu at nigauri.org>
---
 board/renesas/r2dplus/r2dplus.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/board/renesas/r2dplus/r2dplus.c b/board/renesas/r2dplus/r2dplus.c
index f2da4686c3..079f778f22 100644
--- a/board/renesas/r2dplus/r2dplus.c
+++ b/board/renesas/r2dplus/r2dplus.c
@@ -45,7 +45,9 @@ void ide_set_reset(int idereset)
 	}
 }
 
+#ifndef CONFIG_DM_ETH
 int board_eth_init(bd_t *bis)
 {
 	return pci_eth_init(bis);
 }
+#endif
-- 
2.25.1



More information about the U-Boot mailing list