Commit 9712ba0bec83579ae63e4d61f79e18c7d0d9d3fd

Authored by Sachin Kamat
Committed by Gustavo Padovan
1 parent f91c8468df

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>

Showing 1 changed file with 1 additions and 15 deletions Side-by-side Diff

drivers/bluetooth/btwilink.c
... ... @@ -358,21 +358,7 @@
358 358 },
359 359 };
360 360  
361   -/* ------- Module Init/Exit interfaces ------ */
362   -static int __init btwilink_init(void)
363   -{
364   - BT_INFO("Bluetooth Driver for TI WiLink - Version %s", VERSION);
365   -
366   - return platform_driver_register(&btwilink_driver);
367   -}
368   -
369   -static void __exit btwilink_exit(void)
370   -{
371   - platform_driver_unregister(&btwilink_driver);
372   -}
373   -
374   -module_init(btwilink_init);
375   -module_exit(btwilink_exit);
  361 +module_platform_driver(btwilink_driver);
376 362  
377 363 /* ------ Module Info ------ */
378 364