summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2012-11-18 13:49:41 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2012-11-20 09:38:26 +0100
commit30298c0f3ce43c364090f14618ccf012260841ca (patch)
treeff8c4e7deee9748717307549f02adb03f047191a
parent9ea956db779f485c243c91f127d569ba93f18dd3 (diff)
downloadbarebox-30298c0f3ce43c364090f14618ccf012260841ca.tar.gz
barebox-30298c0f3ce43c364090f14618ccf012260841ca.tar.xz
mdio_bus: fix match
on barebox we have the weird way the return 0 true on bus match Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--drivers/net/phy/mdio_bus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/phy/mdio_bus.c b/drivers/net/phy/mdio_bus.c
index 544d743d9a..3e79345089 100644
--- a/drivers/net/phy/mdio_bus.c
+++ b/drivers/net/phy/mdio_bus.c
@@ -106,7 +106,7 @@ static int mdio_bus_match(struct device_d *dev, struct driver_d *drv)
struct phy_device *phydev = to_phy_device(dev);
struct phy_driver *phydrv = to_phy_driver(drv);
- return ((phydrv->phy_id & phydrv->phy_id_mask) ==
+ return ((phydrv->phy_id & phydrv->phy_id_mask) !=
(phydev->phy_id & phydrv->phy_id_mask));
}