From: Stefan Roese Date: Wed, 25 Feb 2009 12:11:15 +0100 Subject: [U-Boot] [PATCH v2] powerpc: Only use eth_getenv_enetaddr() if networking is enabled Message-ID: <1235560275-9434-1-git-send-email-sr@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Signed-off-by: Stefan Roese --- v2: - Include all eth_getenv_enetaddr() calls in the CONFIG_CMD_NET section 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..cac40ac 100644 --- a/lib_ppc/board.c +++ b/lib_ppc/board.c @@ -888,6 +888,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 @@ -905,6 +906,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"); -- 1.6.1.3