X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=drivers%2Fnet%2Fphy%2Fphy_device.c;h=2f6989b1e0dc801c9adea4d5e145a5dcf4d8ad26;hb=32fc3fd41ae44a41ffb8fd5ec4f4764822104655;hp=4b970f7624c0f00df17b41e3b4ca13f0846df9c3;hpb=fcad3e6b576e78fce9ffca124a15de86b64453a0;p=~andy%2Flinux diff --git a/drivers/net/phy/phy_device.c b/drivers/net/phy/phy_device.c index 4b970f7624c..2f6989b1e0d 100644 --- a/drivers/net/phy/phy_device.c +++ b/drivers/net/phy/phy_device.c @@ -683,10 +683,9 @@ EXPORT_SYMBOL(phy_detach); int phy_suspend(struct phy_device *phydev) { struct phy_driver *phydrv = to_phy_driver(phydev->dev.driver); - struct ethtool_wolinfo wol; + struct ethtool_wolinfo wol = { .cmd = ETHTOOL_GWOL }; /* If the device has WOL enabled, we cannot suspend the PHY */ - wol.cmd = ETHTOOL_GWOL; phy_ethtool_get_wol(phydev, &wol); if (wol.wolopts) return -EBUSY;