From: Hou Zhiqiang Date: Mon, 21 Sep 2020 09:38:45 +0000 (+0530) Subject: mpc8xxx: Don't compile board_eth_init() for DM_ETH X-Git-Url: http://git.dujemihanovic.xyz/login.html?a=commitdiff_plain;h=5396fa62d923fa89f082abab20c589091aba4202;p=u-boot.git mpc8xxx: Don't compile board_eth_init() for DM_ETH The cpu_eth_init() is only used by the legacy ethernet driver framework. Signed-off-by: Hou Zhiqiang Reviewed-by: Vladimir Oltean [Rebased] Signed-off-by: Priyanka Jain --- diff --git a/arch/powerpc/cpu/mpc8xxx/cpu.c b/arch/powerpc/cpu/mpc8xxx/cpu.c index 2b24e755fa..b2d1dc5b48 100644 --- a/arch/powerpc/cpu/mpc8xxx/cpu.c +++ b/arch/powerpc/cpu/mpc8xxx/cpu.c @@ -343,6 +343,7 @@ int fixup_cpu(void) return 0; } +#ifndef CONFIG_DM_ETH /* * Initializes on-chip ethernet controllers. * to override, implement board_eth_init() @@ -370,3 +371,4 @@ int cpu_eth_init(struct bd_info *bis) #endif return 0; } +#endif