From: Arnaud Patard Date: Thu, 28 Sep 2006 22:29:37 +0000 (-0700) Subject: [Bluetooth]: Fix section mismatch of bt_sysfs_cleanup() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=860e13b5c591f1040b76fff57a6a3d6ca9633983;p=linux-beck.git [Bluetooth]: Fix section mismatch of bt_sysfs_cleanup() The bt_sysfs_cleanup() is marked with __exit attribute, but it will be called from an __init function in the error case. So the __exit attribute must be removed. Signed-off-by: Arnaud Patard Signed-off-by: Marcel Holtmann Signed-off-by: David S. Miller --- diff --git a/net/bluetooth/hci_sysfs.c b/net/bluetooth/hci_sysfs.c index a5c4804b77f4..989b22d9042e 100644 --- a/net/bluetooth/hci_sysfs.c +++ b/net/bluetooth/hci_sysfs.c @@ -348,7 +348,7 @@ int __init bt_sysfs_init(void) return 0; } -void __exit bt_sysfs_cleanup(void) +void bt_sysfs_cleanup(void) { class_destroy(bt_class);