diff options
Diffstat (limited to 'drivers/net/phy/mdio_bus.c')
-rw-r--r-- | drivers/net/phy/mdio_bus.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/phy/mdio_bus.c b/drivers/net/phy/mdio_bus.c index fc4aee96cdfd..fc2f0e695a13 100644 --- a/drivers/net/phy/mdio_bus.c +++ b/drivers/net/phy/mdio_bus.c | |||
@@ -131,7 +131,8 @@ static int mdio_bus_match(struct device *dev, struct device_driver *drv) | |||
131 | struct phy_device *phydev = to_phy_device(dev); | 131 | struct phy_device *phydev = to_phy_device(dev); |
132 | struct phy_driver *phydrv = to_phy_driver(drv); | 132 | struct phy_driver *phydrv = to_phy_driver(drv); |
133 | 133 | ||
134 | return (phydrv->phy_id == (phydev->phy_id & phydrv->phy_id_mask)); | 134 | return ((phydrv->phy_id & phydrv->phy_id_mask) == |
135 | (phydev->phy_id & phydrv->phy_id_mask)); | ||
135 | } | 136 | } |
136 | 137 | ||
137 | /* Suspend and resume. Copied from platform_suspend and | 138 | /* Suspend and resume. Copied from platform_suspend and |