Skip to content

Commit

Permalink
[Bluetooth]: Fix section mismatch of bt_sysfs_cleanup()
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Marcel Holtmann <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
thertp authored and David S. Miller committed Sep 29, 2006
1 parent 37e97b4 commit 860e13b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/bluetooth/hci_sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 860e13b

Please sign in to comment.