From: Bin Meng Date: Tue, 25 Aug 2015 00:22:21 -0700 Subject: [U-Boot] [PATCH 3/9] dm: eth: Do not call board_eth_init() or cpu_eth_init() In-Reply-To: <1440487347-10517-1-git-send-email-bmeng.cn@gmail.com> References: <1440487347-10517-1-git-send-email-bmeng.cn@gmail.com> Message-ID: <1440487347-10517-3-git-send-email-bmeng.cn@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- 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