summaryrefslogtreecommitdiff
path: root/drivers/net/bcm570x.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-02-12 00:04:25 (GMT)
committerWolfgang Denk <wd@denx.de>2009-03-20 21:39:10 (GMT)
commitc4b8762f11d337e6a9d90c227b2871d65d372469 (patch)
tree5079ad627d9dba3d460276bba36a7f26de35bd06 /drivers/net/bcm570x.c
parentd3f871482f06f6a4eaf4a3fafde84846bad87b4f (diff)
downloadu-boot-c4b8762f11d337e6a9d90c227b2871d65d372469.tar.xz
bcm570x: get mac address from environment
The environment is the canonical storage location of the mac address, so we're killing off the global data location and moving everything to querying the env directly. Since the address is in the PLM_DEVICE_BLOCK structure already, there is no need to pass the NodeAddress as a second parameter. So drop the second argument to the LM_SetMacAddress() function (and update the tigon3 driver accordingly). Signed-off-by: Mike Frysinger <vapier@gentoo.org> CC: Ben Warren <biggerbadderben@gmail.com>
Diffstat (limited to 'drivers/net/bcm570x.c')
-rw-r--r--drivers/net/bcm570x.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/bcm570x.c b/drivers/net/bcm570x.c
index 185764e..c250d44 100644
--- a/drivers/net/bcm570x.c
+++ b/drivers/net/bcm570x.c
@@ -450,8 +450,8 @@ int eth_init (bd_t * bis)
+ 1);
strcpy (pUmDevice->name, board_info[bcm570xDevices[i].board_id].name);
- memcpy (pDevice->NodeAddress, bis->bi_enetaddr, 6);
- LM_SetMacAddress (pDevice, bis->bi_enetaddr);
+ eth_getenv_enetaddr("ethaddr", pDevice->NodeAddress);
+ LM_SetMacAddress (pDevice);
/* Init queues .. */
QQ_InitQueue (&pUmDevice->rx_out_of_buf_q.Container,
MAX_RX_PACKET_DESC_COUNT);