diff options
Diffstat (limited to 'target/linux/ar71xx/files/drivers')
-rw-r--r-- | target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_phy.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_phy.c b/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_phy.c index e92798ceb8..336143f753 100644 --- a/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_phy.c +++ b/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_phy.c @@ -127,12 +127,13 @@ static int ag71xx_phy_connect_multi(struct ag71xx *ag) if (ag->mii_bus->mdio_map[phy_addr] == NULL) continue; - phydev = mdiobus_get_phy(ag->mii_bus, phy_addr); - DBG("%s: PHY found at %s, uid=%08x\n", dev_name(dev), dev_name(&ag->mii_bus->mdio_map[phy_addr]->dev), (phydev) ? phydev->phy_id : 0); + + if (phydev == NULL) + phydev = mdiobus_get_phy(ag->mii_bus, phy_addr); #endif } |