diff options
author | Anand Gadiyar <gadiyar@ti.com> | 2011-02-22 02:13:09 -0500 |
---|---|---|
committer | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-02-22 06:43:52 -0500 |
commit | b7440a14f28492bac30d7d43fd982fd210c6e971 (patch) | |
tree | 4da1c312879b0396be8456f731bea0aabc720b3e /net/bluetooth/hci_sock.c | |
parent | 15c4794fe247d85ce38eb5f5e2a5855d996f56cd (diff) |
Bluetooth: fix build break on hci_sock.c
Linux-next as of 20110217 complains when building for OMAP1.
LD vmlinux
`hci_sock_cleanup' referenced in section `.init.text' of net/built-in.o: defined in discarded section `.exit.text' of net/built-in.o
`hci_sock_cleanup' referenced in section `.init.text' of net/built-in.o: defined in discarded section `.exit.text' of net/built-in.o
make: *** [vmlinux] Error 1
A recent patch by Gustavo (Bluetooth: Merge L2CAP and SCO modules
into bluetooth.ko) introduced this by calling the hci_sock_cleanup
function in the error path of bt_init.
Fix this by dropping the __exit marking for hci_sock_cleanup.
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'net/bluetooth/hci_sock.c')
-rw-r--r-- | net/bluetooth/hci_sock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/hci_sock.c b/net/bluetooth/hci_sock.c index d50e96136608..295e4a88fff8 100644 --- a/net/bluetooth/hci_sock.c +++ b/net/bluetooth/hci_sock.c | |||
@@ -861,7 +861,7 @@ error: | |||
861 | return err; | 861 | return err; |
862 | } | 862 | } |
863 | 863 | ||
864 | void __exit hci_sock_cleanup(void) | 864 | void hci_sock_cleanup(void) |
865 | { | 865 | { |
866 | if (bt_sock_unregister(BTPROTO_HCI) < 0) | 866 | if (bt_sock_unregister(BTPROTO_HCI) < 0) |
867 | BT_ERR("HCI socket unregistration failed"); | 867 | BT_ERR("HCI socket unregistration failed"); |