aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2007-05-08 01:48:02 -0400
committerJeff Garzik <jeff@garzik.org>2007-05-08 01:48:19 -0400
commita5fd22ebc71eecb7b61e542d34ac50a417b3031b (patch)
tree9393aa01f5f55f24b070ab0c465c3b73d68bc036 /drivers/net
parentbb6e9590792834f905a92e439a083254649c985c (diff)
pasemi_mac: Use local-mac-address instead of mac-address if available
Use local-mac-address in the device tree instead. Fall back to mac-address for older firmware. Signed-off-by: Olof Johansson <olof@lixom.net> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/pasemi_mac.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/net/pasemi_mac.c b/drivers/net/pasemi_mac.c
index 78b127c404e9..b8f976bd60fd 100644
--- a/drivers/net/pasemi_mac.c
+++ b/drivers/net/pasemi_mac.c
@@ -94,7 +94,12 @@ static int pasemi_get_mac_addr(struct pasemi_mac *mac)
94 return -ENOENT; 94 return -ENOENT;
95 } 95 }
96 96
97 maddr = get_property(dn, "mac-address", NULL); 97 maddr = get_property(dn, "local-mac-address", NULL);
98
99 /* Fall back to mac-address for older firmware */
100 if (maddr == NULL)
101 maddr = get_property(dn, "mac-address", NULL);
102
98 if (maddr == NULL) { 103 if (maddr == NULL) {
99 dev_warn(&pdev->dev, 104 dev_warn(&pdev->dev,
100 "no mac address in device tree, not configuring\n"); 105 "no mac address in device tree, not configuring\n");