diff options
Diffstat (limited to 'drivers/net/gianfar_ethtool.c')
-rw-r--r-- | drivers/net/gianfar_ethtool.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/gianfar_ethtool.c b/drivers/net/gianfar_ethtool.c index 59b3b5d98efe..dbf06e9313cc 100644 --- a/drivers/net/gianfar_ethtool.c +++ b/drivers/net/gianfar_ethtool.c | |||
@@ -600,6 +600,7 @@ static int gfar_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol) | |||
600 | 600 | ||
601 | spin_lock_irqsave(&priv->bflock, flags); | 601 | spin_lock_irqsave(&priv->bflock, flags); |
602 | priv->wol_en = wol->wolopts & WAKE_MAGIC ? 1 : 0; | 602 | priv->wol_en = wol->wolopts & WAKE_MAGIC ? 1 : 0; |
603 | device_set_wakeup_enable(&dev->dev, priv->wol_en); | ||
603 | spin_unlock_irqrestore(&priv->bflock, flags); | 604 | spin_unlock_irqrestore(&priv->bflock, flags); |
604 | 605 | ||
605 | return 0; | 606 | return 0; |