ar71xx: ag71xx: fix compile error when enabling debug
[openwrt/staging/rmilecki.git] / target / linux / ar71xx / files / drivers / net / ethernet / atheros / ag71xx / ag71xx_phy.c
index 1683fce882f6d9a172f0efe0e87a9f886e7a024f..e92798ceb8975618b8cb2d4b9321402833e97b1e 100644 (file)
@@ -97,13 +97,6 @@ static int ag71xx_phy_connect_fixed(struct ag71xx *ag)
        ag->duplex = pdata->duplex;
        ag->speed = pdata->speed;
 
-       if (!ret) {
-               dev_info(dev, "connected to fixed PHY at %s [uid=%08x, driver=%s]\n",
-                           phydev_name(ag->phy_dev),
-                           ag->phy_dev->phy_id, ag->phy_dev->drv->name);
-       } else {
-               pr_err("Failed to connect to fixed PHY\n");
-       }
        return ret;
 }
 
@@ -126,8 +119,7 @@ static int ag71xx_phy_connect_multi(struct ag71xx *ag)
                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];
@@ -135,14 +127,12 @@ static int ag71xx_phy_connect_multi(struct ag71xx *ag)
                if (ag->mii_bus->mdio_map[phy_addr] == NULL)
                        continue;
 
-               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);
+               phydev = mdiobus_get_phy(ag->mii_bus, phy_addr);
 
-               if (phydev == NULL)
-                       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);
 #endif
        }