projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b538df
)
r8169: add shutdown handler
author
Francois Romieu
<romieu@fr.zoreil.com>
Sat, 13 Sep 2008 15:21:40 +0000
(17:21 +0200)
committer
Francois Romieu
<romieu@fr.zoreil.com>
Fri, 10 Oct 2008 21:09:12 +0000
(23:09 +0200)
Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Cc: Edward Hsu <edward_hsu@realtek.com.tw>
drivers/net/r8169.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/r8169.c
b/drivers/net/r8169.c
index 02b11a0814dd42fd1de63fd9575c0279fbc33938..bdae2c59a7509020e7759e097935c420b762b324 100644
(file)
--- 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
};