Skip to contentSkip to conversation

ucc_geth: use of_get_mac_address()

PATCH Applied Timur Tabi 2 participants 2 messages Feb 21, 2007 – Feb 27, 2007

Subsystems (2)
lore
Share & tools
lore

Timur Tabi

author
#0 lore raw

PATCH 1/1 ucc_geth: use of_get_mac_address()

Update ucc_geth_probe() to use function of_get_mac_address() to obtain the MAC address.

---
 drivers/net/ucc_geth.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
drivers/net/ucc_geth.c +1 -3
index a2fc2bb..885e73d 100644
@@ -4199,9 +4199,7 @@ static int ucc_geth_probe(struct of_device* ofdev, const struct of_device_id *ma
 	ugeth->ug_info = ug_info;
 	ugeth->dev = dev;
 
-	mac_addr = get_property(np, "mac-address", NULL);
-	if (mac_addr == NULL)
-		mac_addr = get_property(np, "local-mac-address", NULL);
+	mac_addr = of_get_mac_address(np);
 	if (mac_addr)
 		memcpy(dev->dev_addr, mac_addr, 6);
 
Signature · 1 line
1.5.0
Applied
#1 lore raw
Quoted 7 lines · Timur Tabi

Update ucc_geth_probe() to use function of_get_mac_address() to obtain the MAC address.

---
 drivers/net/ucc_geth.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

applied