|
@@ -683,10 +683,9 @@ EXPORT_SYMBOL(phy_detach);
|
|
int phy_suspend(struct phy_device *phydev)
|
|
int phy_suspend(struct phy_device *phydev)
|
|
{
|
|
{
|
|
struct phy_driver *phydrv = to_phy_driver(phydev->dev.driver);
|
|
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 */
|
|
/* If the device has WOL enabled, we cannot suspend the PHY */
|
|
- wol.cmd = ETHTOOL_GWOL;
|
|
|
|
phy_ethtool_get_wol(phydev, &wol);
|
|
phy_ethtool_get_wol(phydev, &wol);
|
|
if (wol.wolopts)
|
|
if (wol.wolopts)
|
|
return -EBUSY;
|
|
return -EBUSY;
|