projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
phy: Add API for {un}registering an mdio device to a bus.
[cascardo/linux.git]
/
drivers
/
net
/
ethernet
/
smsc
/
smsc9420.c
diff --git
a/drivers/net/ethernet/smsc/smsc9420.c
b/drivers/net/ethernet/smsc/smsc9420.c
index
53355c3
..
8594b9e
100644
(file)
--- a/
drivers/net/ethernet/smsc/smsc9420.c
+++ b/
drivers/net/ethernet/smsc/smsc9420.c
@@
-1158,7
+1158,8
@@
static int smsc9420_mii_probe(struct net_device *dev)
BUG_ON(pd->phy_dev);
/* Device only supports internal PHY at address 1 */
- if (!pd->mii_bus->phy_map[1]) {
+ phydev = mdiobus_get_phy(pd->mii_bus, 1);
+ if (!phydev) {
netdev_err(dev, "no PHY found at address 1\n");
return -ENODEV;
}