Skip to content

Commit

Permalink
Bluetooth: Use module_platform_driver() in btwilink.c file
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sachin Kamat authored and Gustavo Padovan committed Sep 8, 2012
1 parent f91c846 commit 9712ba0
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions drivers/bluetooth/btwilink.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 ------ */

Expand Down

0 comments on commit 9712ba0

Please sign in to comment.