From: Francois Romieu Date: Sat, 13 Sep 2008 15:21:40 +0000 (+0200) Subject: r8169: add shutdown handler X-Git-Tag: v2.6.28-rc1~717^2^2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=1765f95d2db0a516b5816e016fdf459c4bb5affb;p=linux-2.6-omap-h63xx.git r8169: add shutdown handler Signed-off-by: Francois Romieu Cc: Edward Hsu --- diff --git a/drivers/net/r8169.c b/drivers/net/r8169.c index 02b11a0814d..bdae2c59a75 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 };