projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
s390/qeth: ensure linear access to packet headers
[linux-2.6-microblaze.git]
/
drivers
/
of
/
of_mdio.c
diff --git
a/drivers/of/of_mdio.c
b/drivers/of/of_mdio.c
index
bd6129d
..
c6b87ce
100644
(file)
--- a/
drivers/of/of_mdio.c
+++ b/
drivers/of/of_mdio.c
@@
-361,8
+361,8
@@
struct phy_device *of_phy_get_and_connect(struct net_device *dev,
struct phy_device *phy;
int ret;
-
iface = of_get_phy_mode(np
);
- if (
(int)iface < 0
)
+
ret = of_get_phy_mode(np, &iface
);
+ if (
ret
)
return NULL;
if (of_phy_is_fixed_link(np)) {
ret = of_phy_register_fixed_link(np);