From: Timur Tabi Date: Wed, 21 Feb 2007 20:40:12 +0000 (-0600) Subject: ucc_geth: use of_get_mac_address() X-Git-Tag: MMI-PSA29.97-13-9~44946^2~30 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e9eb70c92143c8f03e456aa60d89204b3311e554;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Signed-off-by: Jeff Garzik --- diff --git a/drivers/net/ucc_geth.c b/drivers/net/ucc_geth.c index a2fc2bbcf97f..885e73d731c2 100644 --- a/drivers/net/ucc_geth.c +++ b/drivers/net/ucc_geth.c @@ -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);