Skip to content

Commit e9eb70c

Browse files
Timur TabiJeff Garzik
authored andcommitted
ucc_geth: use of_get_mac_address()
Update ucc_geth_probe() to use function of_get_mac_address() to obtain the MAC address. Signed-off-by: Timur Tabi <timur@freescale.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
1 parent f19841f commit e9eb70c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/net/ucc_geth.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4199,9 +4199,7 @@ static int ucc_geth_probe(struct of_device* ofdev, const struct of_device_id *ma
41994199
ugeth->ug_info = ug_info;
42004200
ugeth->dev = dev;
42014201

4202-
mac_addr = get_property(np, "mac-address", NULL);
4203-
if (mac_addr == NULL)
4204-
mac_addr = get_property(np, "local-mac-address", NULL);
4202+
mac_addr = of_get_mac_address(np);
42054203
if (mac_addr)
42064204
memcpy(dev->dev_addr, mac_addr, 6);
42074205

0 commit comments

Comments
 (0)