summaryrefslogtreecommitdiff
path: root/lib_ppc
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2009-02-25 12:11:15 +0100
committerWolfgang Denk <wd@denx.de>2009-03-20 22:39:14 +0100
commit02a301cd5087eaffdf456e0a5cec1100c4d9a398 (patch)
treea445596c36062bf063c4a4648ef462714aa9dffc /lib_ppc
parent5c4fa9b474af95d60f019ec6369cbe77b9dab4b5 (diff)
powerpc: Only use eth_getenv_enetaddr() if networking is enabled
Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'lib_ppc')
-rw-r--r--lib_ppc/board.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib_ppc/board.c b/lib_ppc/board.c
index c925a5868c..3b93e4e158 100644
--- a/lib_ppc/board.c
+++ b/lib_ppc/board.c
@@ -884,6 +884,7 @@ void board_init_r (gd_t *id, ulong dest_addr)
bd->bi_ethspeed = 0xFFFF;
#endif
+#ifdef CONFIG_CMD_NET
/* kept around for legacy kernels only ... ignore the next section */
eth_getenv_enetaddr("ethaddr", bd->bi_enetaddr);
#ifdef CONFIG_HAS_ETH1
@@ -901,6 +902,7 @@ void board_init_r (gd_t *id, ulong dest_addr)
#ifdef CONFIG_HAS_ETH5
eth_getenv_enetaddr("eth5addr", bd->bi_enet5addr);
#endif
+#endif /* CONFIG_CMD_NET */
/* IP Address */
bd->bi_ip_addr = getenv_IPaddr ("ipaddr");