Skip to content

Commit

Permalink
r8169: add shutdown handler
Browse files Browse the repository at this point in the history
Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Cc: Edward Hsu <edward_hsu@realtek.com.tw>
  • Loading branch information
Francois Romieu committed Oct 10, 2008
1 parent 5b538df commit 1765f95
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/net/r8169.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -3884,6 +3889,7 @@ static struct pci_driver rtl8169_pci_driver = {
#ifdef CONFIG_PM
.suspend = rtl8169_suspend,
.resume = rtl8169_resume,
.shutdown = rtl_shutdown,
#endif
};

Expand Down

0 comments on commit 1765f95

Please sign in to comment.