提交 860e13b5 编写于 作者: A Arnaud Patard 提交者: David S. Miller

[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: NArnaud Patard <arnaud.patard@rtp-net.org>
Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 37e97b4e
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册