diff options
| -rw-r--r-- | drivers/net/r8169.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/r8169.c b/drivers/net/r8169.c index 3a0877e0f97c..4c4d16905efb 100644 --- a/drivers/net/r8169.c +++ b/drivers/net/r8169.c | |||
| @@ -846,10 +846,10 @@ static int rtl8169_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol) | |||
| 846 | else | 846 | else |
| 847 | tp->features &= ~RTL_FEATURE_WOL; | 847 | tp->features &= ~RTL_FEATURE_WOL; |
| 848 | __rtl8169_set_wol(tp, wol->wolopts); | 848 | __rtl8169_set_wol(tp, wol->wolopts); |
| 849 | device_set_wakeup_enable(&tp->pci_dev->dev, wol->wolopts); | ||
| 850 | |||
| 851 | spin_unlock_irq(&tp->lock); | 849 | spin_unlock_irq(&tp->lock); |
| 852 | 850 | ||
| 851 | device_set_wakeup_enable(&tp->pci_dev->dev, wol->wolopts); | ||
| 852 | |||
| 853 | return 0; | 853 | return 0; |
| 854 | } | 854 | } |
| 855 | 855 | ||
