[U-Boot] [PATCH/next branch] powerpc: Only use eth_getenv_enetaddr() if networking is enabled

Stefan Roese sr at denx.de
Mon Feb 23 16:52:45 CET 2009


Signed-off-by: Stefan Roese <sr at denx.de>
---
 lib_ppc/board.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/lib_ppc/board.c b/lib_ppc/board.c
index f1b62f5..fc3cef6 100644
--- a/lib_ppc/board.c
+++ b/lib_ppc/board.c
@@ -888,8 +888,10 @@ 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);
+#endif
 #ifdef CONFIG_HAS_ETH1
 	eth_getenv_enetaddr("eth1addr", bd->bi_enet1addr);
 #endif
-- 
1.6.1.3



More information about the U-Boot mailing list