diff --git a/drivers/net/phy/phy_device.c b/drivers/net/phy/phy_device.c index 2bca9554752f..ec88e000fe4f 100644 --- a/drivers/net/phy/phy_device.c +++ b/drivers/net/phy/phy_device.c @@ -136,7 +136,7 @@ static int mdio_bus_phy_resume(struct device *dev) struct phy_device *phydev = to_phy_device(dev); int ret; - if (!mdio_bus_phy_may_suspend(phydev)) + if (!phydev->suspended) goto no_resume; ret = phy_resume(phydev);