summaryrefslogtreecommitdiff
path: root/arch/powerpc/cpu/mpc8xx/scc.c
diff options
context:
space:
mode:
authorJoe Hershberger <joe.hershberger@ni.com>2015-03-22 17:09:00 -0500
committerSimon Glass <sjg@chromium.org>2015-04-18 11:11:10 -0600
commit8b2c9a7157c3c737b3bdf640796509eef0a58c52 (patch)
treef50951a973cf76471e0199bb01b5d69b245c88a6 /arch/powerpc/cpu/mpc8xx/scc.c
parent0eb25b619699270a8af95c2f76791fd6c4b52972 (diff)
downloadu-boot-8b2c9a7157c3c737b3bdf640796509eef0a58c52.tar.gz
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/powerpc/cpu/mpc8xx/scc.c')
-rw-r--r--arch/powerpc/cpu/mpc8xx/scc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/cpu/mpc8xx/scc.c b/arch/powerpc/cpu/mpc8xx/scc.c
index 251966b4a0..66e4014f75 100644
--- a/arch/powerpc/cpu/mpc8xx/scc.c
+++ b/arch/powerpc/cpu/mpc8xx/scc.c
@@ -339,7 +339,7 @@ static int scc_init (struct eth_device *dev, bd_t * bis)
pram_ptr->sen_gaddr3 = 0x0; /* Group Address Filter 3 (unused) */
pram_ptr->sen_gaddr4 = 0x0; /* Group Address Filter 4 (unused) */
-#define ea eth_get_dev()->enetaddr
+#define ea eth_get_ethaddr()
pram_ptr->sen_paddrh = (ea[5] << 8) + ea[4];
pram_ptr->sen_paddrm = (ea[3] << 8) + ea[2];
pram_ptr->sen_paddrl = (ea[1] << 8) + ea[0];