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 ------ */
|
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 ------ */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user