mirror of https://gitee.com/openkylin/linux.git
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: Sachin Kamat <sachin.kamat@linaro.org> Acked-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
This commit is contained in:
parent
f91c8468df
commit
9712ba0bec
|
@ -358,21 +358,7 @@ static struct platform_driver btwilink_driver = {
|
|||
},
|
||||
};
|
||||
|
||||
/* ------- Module Init/Exit interfaces ------ */
|
||||
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_platform_driver(btwilink_driver);
|
||||
|
||||
/* ------ Module Info ------ */
|
||||
|
||||
|
|
Loading…
Reference in New Issue