diff options
author | Hou Zhiqiang <Zhiqiang.Hou@nxp.com> | 2020-09-21 15:08:45 +0530 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-09-24 08:27:44 -0400 |
commit | 5396fa62d923fa89f082abab20c589091aba4202 (patch) | |
tree | 82db70d99bd1acd401aac52583cb1aaeeaaad97b /arch/powerpc | |
parent | 7fb568de53cd0276c3e616a9cbf942b71007ed4b (diff) | |
download | u-boot-5396fa62d923fa89f082abab20c589091aba4202.zip u-boot-5396fa62d923fa89f082abab20c589091aba4202.tar.gz u-boot-5396fa62d923fa89f082abab20c589091aba4202.tar.bz2 |
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 <Zhiqiang.Hou@nxp.com>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
[Rebased]
Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/cpu/mpc8xxx/cpu.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/cpu/mpc8xxx/cpu.c b/arch/powerpc/cpu/mpc8xxx/cpu.c index 2b24e75..b2d1dc5 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 |