aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancois Romieu <romieu@fr.zoreil.com>2008-09-13 11:21:40 -0400
committerFrancois Romieu <romieu@fr.zoreil.com>2008-10-10 17:09:12 -0400
commit1765f95d2db0a516b5816e016fdf459c4bb5affb (patch)
tree09e72c62a8fb0090095b925aafb1402e12041593
parent5b538df9dedb3469b688b93ffab2a7efb64c88e3 (diff)
r8169: add shutdown handler
Signed-off-by: Francois Romieu <romieu@fr.zoreil.com> Cc: Edward Hsu <edward_hsu@realtek.com.tw>
-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 02b11a0814dd..bdae2c59a750 100644
--- a/drivers/net/r8169.c
+++ b/drivers/net/r8169.c
@@ -3874,6 +3874,11 @@ out:
3874 return 0; 3874 return 0;
3875} 3875}
3876 3876
3877static void rtl_shutdown(struct pci_dev *pdev)
3878{
3879 rtl8169_suspend(pdev, PMSG_SUSPEND);
3880}
3881
3877#endif /* CONFIG_PM */ 3882#endif /* CONFIG_PM */
3878 3883
3879static struct pci_driver rtl8169_pci_driver = { 3884static struct pci_driver rtl8169_pci_driver = {
@@ -3884,6 +3889,7 @@ static struct pci_driver rtl8169_pci_driver = {
3884#ifdef CONFIG_PM 3889#ifdef CONFIG_PM
3885 .suspend = rtl8169_suspend, 3890 .suspend = rtl8169_suspend,
3886 .resume = rtl8169_resume, 3891 .resume = rtl8169_resume,
3892 .shutdown = rtl_shutdown,
3887#endif 3893#endif
3888}; 3894};
3889 3895