提交 9712ba0b 编写于 作者: S Sachin Kamat 提交者: Gustavo Padovan

Bluetooth: Use module_platform_driver() in btwilink.c file

module_platform_driver() makes the code simpler by eliminating module_init
and module_exit calls.
Signed-off-by: NSachin Kamat <sachin.kamat@linaro.org>
Acked-by: NMarcel Holtmann <marcel@holtmann.org>
Signed-off-by: NGustavo Padovan <gustavo.padovan@collabora.co.uk>
上级 f91c8468
...@@ -358,21 +358,7 @@ static struct platform_driver btwilink_driver = { ...@@ -358,21 +358,7 @@ static struct platform_driver btwilink_driver = {
}, },
}; };
/* ------- Module Init/Exit interfaces ------ */ module_platform_driver(btwilink_driver);
static int __init btwilink_init(void)
{
BT_INFO("Bluetooth Driver for TI WiLink - Version %s", VERSION);
return platform_driver_register(&btwilink_driver);
}
static void __exit btwilink_exit(void)
{
platform_driver_unregister(&btwilink_driver);
}
module_init(btwilink_init);
module_exit(btwilink_exit);
/* ------ Module Info ------ */ /* ------ Module Info ------ */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册