aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIhar Hrachyshka <ihar.hrachyshka@promwad.com>2008-07-08 18:11:59 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-07-14 14:30:06 -0400
commit500c11973233437cbfd298b9d41ba942550aec76 (patch)
tree208e249dce636bbcfa34316532ea3c497096efe5
parent9a613195123ab2c2400004c7aaee4d25f3b8ae52 (diff)
rtl8187: Fixed section mismatch in rtl8187_dev.c
When CONFIG_HOTPLUG=n the following error occures on vmlinux linkage: `.exit.text' referenced in section `.data' of drivers/built-in.o: defined in discarded section `.exit.text' of drivers/built-in.o 'rtl8187_disconnect' function marked as __devexit isn't compiled with no hotplug support. Added __devexit_p macros to fix the problem. Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@promwad.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/rtl8187_dev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/rtl8187_dev.c b/drivers/net/wireless/rtl8187_dev.c
index 33527e58256f..bdea1d8ad8ef 100644
--- a/drivers/net/wireless/rtl8187_dev.c
+++ b/drivers/net/wireless/rtl8187_dev.c
@@ -1180,7 +1180,7 @@ static struct usb_driver rtl8187_driver = {
1180 .name = KBUILD_MODNAME, 1180 .name = KBUILD_MODNAME,
1181 .id_table = rtl8187_table, 1181 .id_table = rtl8187_table,
1182 .probe = rtl8187_probe, 1182 .probe = rtl8187_probe,
1183 .disconnect = rtl8187_disconnect, 1183 .disconnect = __devexit_p(rtl8187_disconnect),
1184}; 1184};
1185 1185
1186static int __init rtl8187_init(void) 1186static int __init rtl8187_init(void)