Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 81314
b: refs/heads/master
c: 70f782e
h: refs/heads/master
v: v3
  • Loading branch information
Jochen Friedrich authored and Kumar Gala committed Jan 24, 2008
1 parent 1f69449 commit c519a01
Show file tree
Hide file tree
Showing 2 changed files with 9 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: 6869e4ad4bd17e7699e58bed6464738e8677c392
refs/heads/master: 70f782e14870435aa37b91e1ea0a189a78eb0fa9
9 changes: 8 additions & 1 deletion trunk/drivers/net/fs_enet/fs_enet-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1174,8 +1174,15 @@ static int __devinit find_phy(struct device_node *np,
struct device_node *phynode, *mdionode;
struct resource res;
int ret = 0, len;
const u32 *data;

data = of_get_property(np, "fixed-link", NULL);
if (data) {
snprintf(fpi->bus_id, 16, PHY_ID_FMT, 0, *data);
return 0;
}

const u32 *data = of_get_property(np, "phy-handle", &len);
data = of_get_property(np, "phy-handle", &len);
if (!data || len != 4)
return -EINVAL;

Expand Down

0 comments on commit c519a01

Please sign in to comment.