summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/adi
diff options
context:
space:
mode:
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>2016-01-08 16:58:14 +0530
committerDavid S. Miller <davem@davemloft.net>2016-01-10 22:46:00 -0500
commit053842a8bffed47fab386954e2e9d0a00e13ae2c (patch)
tree824eecf5cf3e09893452a22c3695bed47371335d /drivers/net/ethernet/adi
parent89e7a154e01cffa325874e90cbb124057416de02 (diff)
downloadlinux-053842a8bffed47fab386954e2e9d0a00e13ae2c.tar.gz
linux-053842a8bffed47fab386954e2e9d0a00e13ae2c.tar.bz2
linux-053842a8bffed47fab386954e2e9d0a00e13ae2c.zip
phy: fix blackfin build failure
The build of blackfin defconfig is failing with the error: error: 'struct mii_bus' has no member named 'phy_map' A new API mdiobus_get_phy() was introduced and phy_map was removed but it was not changed here. Fixes: 7f854420fbfe ("phy: Add API for {un}registering an mdio device to a bus.") Cc: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org> Acked-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/adi')
-rw-r--r--drivers/net/ethernet/adi/bfin_mac.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/adi/bfin_mac.c b/drivers/net/ethernet/adi/bfin_mac.c
index 62862744c870..6f3432ae6703 100644
--- a/drivers/net/ethernet/adi/bfin_mac.c
+++ b/drivers/net/ethernet/adi/bfin_mac.c
@@ -398,7 +398,8 @@ static int mii_probe(struct net_device *dev, int phy_mode)
/* search for connected PHY device */
for (i = 0; i < PHY_MAX_ADDR; ++i) {
- struct phy_device *const tmp_phydev = lp->mii_bus->phy_map[i];
+ struct phy_device *const tmp_phydev =
+ mdiobus_get_phy(lp->mii_bus, i);
if (!tmp_phydev)
continue; /* no PHY here... */