Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 46928
b: refs/heads/master
c: 9b4c7a4
h: refs/heads/master
v: v3
  • Loading branch information
Li Yang authored and Jeff Garzik committed Feb 9, 2007
1 parent 29f3f58 commit d929ec2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a1862a53df1a57387aeee059276ba4233e12b4db
refs/heads/master: 9b4c7a4ec988d9b8bbe847f3c983938220e3a38b
8 changes: 7 additions & 1 deletion trunk/drivers/net/ucc_geth.c
Original file line number Diff line number Diff line change
Expand Up @@ -4072,6 +4072,7 @@ static int ucc_geth_probe(struct of_device* ofdev, const struct of_device_id *ma
static int mii_mng_configured = 0;
const phandle *ph;
const unsigned int *prop;
const void *mac_addr;

ugeth_vdbg("%s: IN", __FUNCTION__);

Expand Down Expand Up @@ -4197,7 +4198,12 @@ static int ucc_geth_probe(struct of_device* ofdev, const struct of_device_id *ma

ugeth->ug_info = ug_info;
ugeth->dev = dev;
memcpy(dev->dev_addr, get_property(np, "mac-address", NULL), 6);

mac_addr = get_property(np, "mac-address", NULL);
if (mac_addr == NULL)
mac_addr = get_property(np, "local-mac-address", NULL);
if (mac_addr)
memcpy(dev->dev_addr, mac_addr, 6);

return 0;
}
Expand Down

0 comments on commit d929ec2

Please sign in to comment.