diff options
-rw-r--r-- | drivers/net/phy/phy_device.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/phy/phy_device.c b/drivers/net/phy/phy_device.c index ff109fe5af6b..83a5a5afec67 100644 --- a/drivers/net/phy/phy_device.c +++ b/drivers/net/phy/phy_device.c | |||
@@ -213,7 +213,7 @@ int get_phy_id(struct mii_bus *bus, int addr, u32 *phy_id) | |||
213 | 213 | ||
214 | /* Grab the bits from PHYIR1, and put them | 214 | /* Grab the bits from PHYIR1, and put them |
215 | * in the upper half */ | 215 | * in the upper half */ |
216 | phy_reg = bus->read(bus, addr, MII_PHYSID1); | 216 | phy_reg = mdiobus_read(bus, addr, MII_PHYSID1); |
217 | 217 | ||
218 | if (phy_reg < 0) | 218 | if (phy_reg < 0) |
219 | return -EIO; | 219 | return -EIO; |
@@ -221,7 +221,7 @@ int get_phy_id(struct mii_bus *bus, int addr, u32 *phy_id) | |||
221 | *phy_id = (phy_reg & 0xffff) << 16; | 221 | *phy_id = (phy_reg & 0xffff) << 16; |
222 | 222 | ||
223 | /* Grab the bits from PHYIR2, and put them in the lower half */ | 223 | /* Grab the bits from PHYIR2, and put them in the lower half */ |
224 | phy_reg = bus->read(bus, addr, MII_PHYSID2); | 224 | phy_reg = mdiobus_read(bus, addr, MII_PHYSID2); |
225 | 225 | ||
226 | if (phy_reg < 0) | 226 | if (phy_reg < 0) |
227 | return -EIO; | 227 | return -EIO; |