summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorFrancois Romieu <romieu@fr.zoreil.com>2008-09-13 17:21:40 +0200
committerFrancois Romieu <romieu@fr.zoreil.com>2008-10-10 23:09:12 +0200
commit1765f95d2db0a516b5816e016fdf459c4bb5affb (patch)
tree09e72c62a8fb0090095b925aafb1402e12041593 /drivers
parent5b538df9dedb3469b688b93ffab2a7efb64c88e3 (diff)
downloadop-kernel-dev-1765f95d2db0a516b5816e016fdf459c4bb5affb.zip
op-kernel-dev-1765f95d2db0a516b5816e016fdf459c4bb5affb.tar.gz
r8169: add shutdown handler
Signed-off-by: Francois Romieu <romieu@fr.zoreil.com> Cc: Edward Hsu <edward_hsu@realtek.com.tw>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/r8169.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/r8169.c b/drivers/net/r8169.c
index 02b11a0..bdae2c5 100644
--- a/drivers/net/r8169.c
+++ b/drivers/net/r8169.c
@@ -3874,6 +3874,11 @@ out:
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
};
OpenPOWER on IntegriCloud