Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1765f95d authored by Francois Romieu's avatar Francois Romieu
Browse files

r8169: add shutdown handler



Signed-off-by: default avatarFrancois Romieu <romieu@fr.zoreil.com>
Cc: Edward Hsu <edward_hsu@realtek.com.tw>
parent 5b538df9
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -3874,6 +3874,11 @@ static int rtl8169_resume(struct pci_dev *pdev)
	return 0;
}

static void rtl_shutdown(struct pci_dev *pdev)
{
	rtl8169_suspend(pdev, PMSG_SUSPEND);
}

#endif /* CONFIG_PM */

static struct pci_driver rtl8169_pci_driver = {
@@ -3884,6 +3889,7 @@ static struct pci_driver rtl8169_pci_driver = {
#ifdef CONFIG_PM
	.suspend	= rtl8169_suspend,
	.resume		= rtl8169_resume,
	.shutdown	= rtl_shutdown,
#endif
};