projects
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7fb568d
)
mpc8xxx: Don't compile board_eth_init() for DM_ETH
author
Hou Zhiqiang
<Zhiqiang.Hou@nxp.com>
Mon, 21 Sep 2020 09:38:45 +0000
(15:08 +0530)
committer
Tom Rini
<trini@konsulko.com>
Thu, 24 Sep 2020 12:27:44 +0000
(08:27 -0400)
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>
arch/powerpc/cpu/mpc8xxx/cpu.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/cpu/mpc8xxx/cpu.c
b/arch/powerpc/cpu/mpc8xxx/cpu.c
index 2b24e755faa41b926741748ae766e39bdfe25a0a..b2d1dc5b48199f5e0ffbadcd46595780e6ac9202 100644
(file)
--- 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