]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/net/gianfar_ethtool.c
igb: make dev_spec a union and remove dynamic allocation
[linux-2.6-omap-h63xx.git] / drivers / net / gianfar_ethtool.c
index 59b3b5d98efe5bcc746e687b766301e5c6b52720..dbf06e9313cc27750362aa59ab6bb779051f81b8 100644 (file)
@@ -600,6 +600,7 @@ static int gfar_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol)
 
        spin_lock_irqsave(&priv->bflock, flags);
        priv->wol_en = wol->wolopts & WAKE_MAGIC ? 1 : 0;
+       device_set_wakeup_enable(&dev->dev, priv->wol_en);
        spin_unlock_irqrestore(&priv->bflock, flags);
 
        return 0;