Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 222055
b: refs/heads/master
c: 6c4f199
h: refs/heads/master
i:
  222053: 6719cb1
  222051: e972987
  222047: 26c0d4a
v: v3
  • Loading branch information
Rafael J. Wysocki authored and David S. Miller committed Nov 12, 2010
1 parent 067a973 commit bc9425f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: 403856532734317d25ec86ab1e75b8133db7acc6
refs/heads/master: 6c4f199411f254bf3713b04ed8653f0955883309
5 changes: 3 additions & 2 deletions trunk/drivers/net/gianfar_ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -635,9 +635,10 @@ static int gfar_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol)
if (wol->wolopts & ~WAKE_MAGIC)
return -EINVAL;

device_set_wakeup_enable(&dev->dev, wol->wolopts & WAKE_MAGIC);

spin_lock_irqsave(&priv->bflock, flags);
priv->wol_en = wol->wolopts & WAKE_MAGIC ? 1 : 0;
device_set_wakeup_enable(&dev->dev, priv->wol_en);
priv->wol_en = !!device_may_wakeup(&dev->dev);
spin_unlock_irqrestore(&priv->bflock, flags);

return 0;
Expand Down

0 comments on commit bc9425f

Please sign in to comment.