From: Sachin Kamat Date: Tue, 7 Aug 2012 05:07:45 +0000 (+0530) Subject: Bluetooth: Use module_platform_driver() in btwilink.c file X-Git-Tag: v3.7-rc1~145^2~30^2~104^2~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9712ba0bec83579ae63e4d61f79e18c7d0d9d3fd;p=platform%2Fkernel%2Flinux-3.10.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 Acked-by: Marcel Holtmann Signed-off-by: Gustavo Padovan --- diff --git a/drivers/bluetooth/btwilink.c b/drivers/bluetooth/btwilink.c index 4ad7b35..60abf59 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 ------ */