Skip to content

Commit

Permalink
rtl8187: Fixed section mismatch in rtl8187_dev.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ihar Hrachyshka authored and John W. Linville committed Jul 14, 2008
1 parent 9a61319 commit 500c119
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/rtl8187_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -1180,7 +1180,7 @@ static struct usb_driver rtl8187_driver = {
.name = KBUILD_MODNAME,
.id_table = rtl8187_table,
.probe = rtl8187_probe,
.disconnect = rtl8187_disconnect,
.disconnect = __devexit_p(rtl8187_disconnect),
};

static int __init rtl8187_init(void)
Expand Down

0 comments on commit 500c119

Please sign in to comment.