Commit 30e5fd92 authored by Adrian Bunk's avatar Adrian Bunk Committed by Dave Jones

[PATCH] fix .text.exit error in drivers/net/r8169.c

In drivers/net/r8169.c the function rtl8169_remove_one is __devexit but
the pointer to it didn't use __devexit_p resulting in a.text.exit
compile error when !CONFIG_HOTPLUG.

The fix is simple:
parent 318103c4
...@@ -1110,7 +1110,7 @@ static struct pci_driver rtl8169_pci_driver = { ...@@ -1110,7 +1110,7 @@ static struct pci_driver rtl8169_pci_driver = {
.name = MODULENAME, .name = MODULENAME,
.id_table = rtl8169_pci_tbl, .id_table = rtl8169_pci_tbl,
.probe = rtl8169_init_one, .probe = rtl8169_init_one,
.remove = rtl8169_remove_one, .remove = __devexit_p(rtl8169_remove_one),
.suspend = NULL, .suspend = NULL,
.resume = NULL, .resume = NULL,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment