diff options
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/realtek/r8169.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/ethernet/realtek/r8169.c b/drivers/net/ethernet/realtek/r8169.c index 1adf17757cea..bbacb3741ec0 100644 --- a/drivers/net/ethernet/realtek/r8169.c +++ b/drivers/net/ethernet/realtek/r8169.c | |||
@@ -6194,6 +6194,9 @@ static void rtl_shutdown(struct pci_dev *pdev) | |||
6194 | { | 6194 | { |
6195 | struct net_device *dev = pci_get_drvdata(pdev); | 6195 | struct net_device *dev = pci_get_drvdata(pdev); |
6196 | struct rtl8169_private *tp = netdev_priv(dev); | 6196 | struct rtl8169_private *tp = netdev_priv(dev); |
6197 | struct device *d = &pdev->dev; | ||
6198 | |||
6199 | pm_runtime_get_sync(d); | ||
6197 | 6200 | ||
6198 | rtl8169_net_suspend(dev); | 6201 | rtl8169_net_suspend(dev); |
6199 | 6202 | ||
@@ -6215,6 +6218,8 @@ static void rtl_shutdown(struct pci_dev *pdev) | |||
6215 | pci_wake_from_d3(pdev, true); | 6218 | pci_wake_from_d3(pdev, true); |
6216 | pci_set_power_state(pdev, PCI_D3hot); | 6219 | pci_set_power_state(pdev, PCI_D3hot); |
6217 | } | 6220 | } |
6221 | |||
6222 | pm_runtime_put_noidle(d); | ||
6218 | } | 6223 | } |
6219 | 6224 | ||
6220 | static struct pci_driver rtl8169_pci_driver = { | 6225 | static struct pci_driver rtl8169_pci_driver = { |