summaryrefslogtreecommitdiffstats
path: root/drivers/net
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-12-05 13:22:01 +0100
commit90806eea09672dd60c3a57e7d077ece613ff1cf3 (patch)
treedc16f176bdb0b27abb9164d68cd4af455876bc45 /drivers/net
parentdf722f36395ec239ec1709d3323c8576c148ca8b (diff)
downloadbarebox-90806eea09672dd60c3a57e7d077ece613ff1cf3.tar.gz
barebox-90806eea09672dd60c3a57e7d077ece613ff1cf3.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>
Diffstat (limited to 'drivers/net')
-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 35319b430b..762adfe020 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));
}