Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 130185
b: refs/heads/master
c: 6f05106
h: refs/heads/master
i:
  130183: dfc2b25
v: v3
  • Loading branch information
Anton Vorontsov authored and David S. Miller committed Jan 22, 2009
1 parent c14e42f commit 1a3d4d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5422a2257350d984094e655b2361abed51a9ddc1
refs/heads/master: 6f051069d8a2045666055e3020ae8a7dec9762e0
8 changes: 3 additions & 5 deletions trunk/drivers/net/phy/mdio_bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -296,9 +296,8 @@ static int mdio_bus_suspend(struct device * dev, pm_message_t state)
struct phy_driver *phydrv = to_phy_driver(drv);
struct phy_device *phydev = to_phy_device(dev);

if ((!device_may_wakeup(phydev->dev.parent)) &&
(phydrv && phydrv->suspend))
ret = phydrv->suspend(phydev);
if (drv && phydrv->suspend && !device_may_wakeup(phydev->dev.parent))
ret = phydrv->suspend(phydev);

return ret;
}
Expand All @@ -310,8 +309,7 @@ static int mdio_bus_resume(struct device * dev)
struct phy_driver *phydrv = to_phy_driver(drv);
struct phy_device *phydev = to_phy_device(dev);

if ((!device_may_wakeup(phydev->dev.parent)) &&
(phydrv && phydrv->resume))
if (drv && phydrv->resume && !device_may_wakeup(phydev->dev.parent))
ret = phydrv->resume(phydev);

return ret;
Expand Down

0 comments on commit 1a3d4d4

Please sign in to comment.