diff options
author | Joe Hershberger <joe.hershberger@ni.com> | 2015-03-22 17:09:00 -0500 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-04-18 11:11:10 -0600 |
commit | 8b2c9a7157c3c737b3bdf640796509eef0a58c52 (patch) | |
tree | f50951a973cf76471e0199bb01b5d69b245c88a6 /arch/mips | |
parent | 0eb25b619699270a8af95c2f76791fd6c4b52972 (diff) | |
download | u-boot-imx-8b2c9a7157c3c737b3bdf640796509eef0a58c52.zip u-boot-imx-8b2c9a7157c3c737b3bdf640796509eef0a58c52.tar.gz u-boot-imx-8b2c9a7157c3c737b3bdf640796509eef0a58c52.tar.bz2 |
net: Provide a function to get the current MAC address
The current implementation exposes the eth_device struct to code that
needs to access the MAC address. Add a wrapper function for this to
abstract away the pointer for this operation.
Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/mach-au1x00/au1x00_eth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/mach-au1x00/au1x00_eth.c b/arch/mips/mach-au1x00/au1x00_eth.c index 39c5b6b..a47f088 100644 --- a/arch/mips/mach-au1x00/au1x00_eth.c +++ b/arch/mips/mach-au1x00/au1x00_eth.c @@ -238,7 +238,7 @@ static int au1x00_init(struct eth_device* dev, bd_t * bd){ } /* Put mac addr in little endian */ -#define ea eth_get_dev()->enetaddr +#define ea eth_get_ethaddr() *mac_addr_high = (ea[5] << 8) | (ea[4] ) ; *mac_addr_low = (ea[3] << 24) | (ea[2] << 16) | (ea[1] << 8) | (ea[0] ) ; |