* [PATCH] ucc_geth: use of_get_mac_address()
@ 2007-02-21 20:40 Timur Tabi
2007-02-27 9:22 ` Jeff Garzik
0 siblings, 1 reply; 2+ messages in thread
From: Timur Tabi @ 2007-02-21 20:40 UTC (permalink / raw)
To: jeff, netdev; +Cc: Timur Tabi
Update ucc_geth_probe() to use function of_get_mac_address() to obtain the MAC
address.
Signed-off-by: Timur Tabi <timur@freescale.com>
---
drivers/net/ucc_geth.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/drivers/net/ucc_geth.c b/drivers/net/ucc_geth.c
index a2fc2bb..885e73d 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);
--
1.5.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-02-27 9:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-21 20:40 [PATCH] ucc_geth: use of_get_mac_address() Timur Tabi
2007-02-27 9:22 ` Jeff Garzik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).