mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
r8169: add shutdown handler
Signed-off-by: Francois Romieu <romieu@fr.zoreil.com> Cc: Edward Hsu <edward_hsu@realtek.com.tw>
This commit is contained in:
parent
5b538df9de
commit
1765f95d2d
1 changed files with 6 additions and 0 deletions
|
@ -3874,6 +3874,11 @@ static int rtl8169_resume(struct pci_dev *pdev)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void rtl_shutdown(struct pci_dev *pdev)
|
||||||
|
{
|
||||||
|
rtl8169_suspend(pdev, PMSG_SUSPEND);
|
||||||
|
}
|
||||||
|
|
||||||
#endif /* CONFIG_PM */
|
#endif /* CONFIG_PM */
|
||||||
|
|
||||||
static struct pci_driver rtl8169_pci_driver = {
|
static struct pci_driver rtl8169_pci_driver = {
|
||||||
|
@ -3884,6 +3889,7 @@ static struct pci_driver rtl8169_pci_driver = {
|
||||||
#ifdef CONFIG_PM
|
#ifdef CONFIG_PM
|
||||||
.suspend = rtl8169_suspend,
|
.suspend = rtl8169_suspend,
|
||||||
.resume = rtl8169_resume,
|
.resume = rtl8169_resume,
|
||||||
|
.shutdown = rtl_shutdown,
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue