
25 Aug
2015
25 Aug
'15
9:22 a.m.
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@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