[U-Boot] [PATCH 3/9] dm: eth: Do not call board_eth_init() or cpu_eth_init()

Bin Meng bmeng.cn at gmail.com
Tue Aug 25 09:22:21 CEST 2015


With driver model, board_eth_init() or cpu_eth_init() is not needed.
Remove the call to these in eth_common_init().

Signed-off-by: Bin Meng <bmeng.cn at gmail.com>
---

 net/eth.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/net/eth.c b/net/eth.c
index d3ec8d6..0b4b08a 100644
--- a/net/eth.c
+++ b/net/eth.c
@@ -96,6 +96,7 @@ static void eth_common_init(void)
 	phy_init();
 #endif
 
+#ifndef CONFIG_DM_ETH
 	/*
 	 * If board-specific initialization exists, call it.
 	 * If not, call a CPU-specific one
@@ -109,6 +110,7 @@ static void eth_common_init(void)
 	} else {
 		printf("Net Initialization Skipped\n");
 	}
+#endif
 }
 
 #ifdef CONFIG_DM_ETH
-- 
1.8.2.1



More information about the U-Boot mailing list