diff options
Diffstat (limited to 'drivers/net/r8169.c')
-rw-r--r-- | drivers/net/r8169.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/r8169.c b/drivers/net/r8169.c index 3c6e591326fc..108aaff0b211 100644 --- a/drivers/net/r8169.c +++ b/drivers/net/r8169.c | |||
@@ -759,6 +759,7 @@ static int rtl8169_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol) | |||
759 | tp->features |= RTL_FEATURE_WOL; | 759 | tp->features |= RTL_FEATURE_WOL; |
760 | else | 760 | else |
761 | tp->features &= ~RTL_FEATURE_WOL; | 761 | tp->features &= ~RTL_FEATURE_WOL; |
762 | device_set_wakeup_enable(&tp->pci_dev->dev, wol->wolopts); | ||
762 | 763 | ||
763 | spin_unlock_irq(&tp->lock); | 764 | spin_unlock_irq(&tp->lock); |
764 | 765 | ||
@@ -2017,6 +2018,7 @@ rtl8169_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
2017 | } | 2018 | } |
2018 | 2019 | ||
2019 | rtl8169_init_phy(dev, tp); | 2020 | rtl8169_init_phy(dev, tp); |
2021 | device_set_wakeup_enable(&pdev->dev, tp->features & RTL_FEATURE_WOL); | ||
2020 | 2022 | ||
2021 | out: | 2023 | out: |
2022 | return rc; | 2024 | return rc; |