powerpc: Only use eth_getenv_enetaddr() if networking is enabled
PATCH v2 1/1 powerpc: Only use eth_getenv_enetaddr() if networking is enabled
Signed-off-by Stefan Roese <[email protected]>
---
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(-)
lib_ppc/board.c +2 -0
@@ -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" );
Signature · 1 line
1.6.1.3
PATCH v2 1/1 powerpc: Only use eth_getenv_enetaddr() if networking is enabled
Dear Stefan Roese,
Quoted 7 lines · In message <[email protected]> you wrote:
Signed-off-by Stefan Roese <[email protected]>---
v2:
- Include alleth_getenv_enetaddr()calls in theCONFIG_CMD_NETsectionlib_ppc/board.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
Thanks. Applied to "next" branch.
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Witch! Witch! They'll burn ya! -- Hag, "Tomorrow is Yesterday", stardate unknown