aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2018-08-01 22:31:04 +0200
committerJo-Philipp Wich <jo@mein.io>2018-08-01 22:31:14 +0200
commit9ebf59638600b3cffc5cb601cce60226c942a516 (patch)
tree8a3f2752d71743856f8eb9d02f1e71906f8ca159
parenta2a225517d1a7c986bffe675274f94806fb6cc51 (diff)
downloadupstream-9ebf59638600b3cffc5cb601cce60226c942a516.tar.gz
upstream-9ebf59638600b3cffc5cb601cce60226c942a516.tar.bz2
upstream-9ebf59638600b3cffc5cb601cce60226c942a516.zip
Revert "ar71xx: ag71xx_phy: Fix compilation for debug messages"
This reverts commit 2655fbe8efb2a596aa8db92cffa817e3bf0c64ea. The patch introduces syntax errors, revert it for now. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
-rw-r--r--target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_phy.c6
1 files changed, 2 insertions, 4 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 58db559ecf..53507ab5a3 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
@@ -140,8 +140,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];
@@ -152,8 +151,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->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);