DBG("%s: PHY found at %s, uid=%08x\n",
dev_name(dev),
dev_name(&ag->mii_bus->phy_map[phy_addr]->dev),
- &ag->mii_bus->phy_map[phy_addr]->phy_id),
- &ag->mii_bus->phy_map[phy_addr]->phy_id : 0);
+ ag->mii_bus->phy_map[phy_addr]->phy_id);
if (phydev == NULL)
phydev = ag->mii_bus->phy_map[phy_addr];
DBG("%s: PHY found at %s, uid=%08x\n",
dev_name(dev),
dev_name(&ag->mii_bus->mdio_map[phy_addr]->dev),
- mdiobus_get_phy(ag->mii_bus, phy_addr) ?
- mdiobus_get_phy(ag->mii_bus, phy_addr)->phy_id : 0);
+ ag->mii_bus->mdio_map[phy_addr]->phy_id);
if (phydev == NULL)
phydev = mdiobus_get_phy(ag->mii_bus, phy_addr);