mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00:00
powerpc: Only use eth_getenv_enetaddr() if networking is enabled
Signed-off-by: Stefan Roese <sr@denx.de>
This commit is contained in:
parent
5c4fa9b474
commit
02a301cd50
1 changed files with 2 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue