summaryrefslogtreecommitdiff
path: root/drivers/bluetooth
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2012-08-07 10:37:45 +0530
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>2012-09-08 16:53:47 -0300
commit9712ba0bec83579ae63e4d61f79e18c7d0d9d3fd (patch)
tree65541c5525e665545515e2901adb94ad0dbd32c3 /drivers/bluetooth
parentf91c8468df97d0ac18132eb38283524a74317901 (diff)
downloadlinux-3.10-9712ba0bec83579ae63e4d61f79e18c7d0d9d3fd.tar.gz
linux-3.10-9712ba0bec83579ae63e4d61f79e18c7d0d9d3fd.tar.bz2
linux-3.10-9712ba0bec83579ae63e4d61f79e18c7d0d9d3fd.zip
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>
Diffstat (limited to 'drivers/bluetooth')
-rw-r--r--drivers/bluetooth/btwilink.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/drivers/bluetooth/btwilink.c b/drivers/bluetooth/btwilink.c
index 4ad7b35cfc0..60abf596f60 100644
--- a/drivers/bluetooth/btwilink.c
+++ b/drivers/bluetooth/btwilink.c
@@ -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 ------ */