diff options
author | Jon Loeliger <jdl@jdl.com> | 2006-08-17 15:42:35 +0200 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-08-18 01:50:16 +0200 |
commit | f583165f6a926e9f27ff8d15c0e4b22e83f0d599 (patch) | |
tree | d4765340b1184a4a94565bbad197cb7b2488d6d1 /arch/powerpc | |
parent | [POWERPC] powerpc: Clear HID0 attention enable on PPC970 at boot time (diff) | |
download | linux-f583165f6a926e9f27ff8d15c0e4b22e83f0d599.tar.xz linux-f583165f6a926e9f27ff8d15c0e4b22e83f0d599.zip |
[POWERPC] Convert to mac-address for ethernet MAC address data.
Also accept "local-mac-address". However the old "address"
is now obsolete, but accepted for backwards compatibility.
It should be removed after all device trees have been
converted to use "mac-address".
Signed-off-by: Jon Loeliger <jdl@freescale.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/sysdev/fsl_soc.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/arch/powerpc/sysdev/fsl_soc.c b/arch/powerpc/sysdev/fsl_soc.c index e983972132d8..12b65609c072 100644 --- a/arch/powerpc/sysdev/fsl_soc.c +++ b/arch/powerpc/sysdev/fsl_soc.c @@ -169,8 +169,16 @@ static int __init gfar_of_init(void) goto err; } - mac_addr = get_property(np, "address", NULL); - memcpy(gfar_data.mac_addr, mac_addr, 6); + mac_addr = get_property(np, "local-mac-address", NULL); + if (mac_addr == NULL) + mac_addr = get_property(np, "mac-address", NULL); + if (mac_addr == NULL) { + /* Obsolete */ + mac_addr = get_property(np, "address", NULL); + } + + if (mac_addr) + memcpy(gfar_data.mac_addr, mac_addr, 6); if (model && !strcasecmp(model, "TSEC")) gfar_data.device_flags = |