Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: S3C24XX: Use module_platform_driver macro in h1940-bluetooth.c

module_platform_driver simplifies the code by eliminating
module_init and module_exit calls.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>

authored by

Sachin Kamat and committed by
Kukjin Kim
1fffc8b2 4e321a39

+1 -13
+1 -13
arch/arm/mach-s3c24xx/h1940-bluetooth.c
··· 138 138 .remove = h1940bt_remove, 139 139 }; 140 140 141 - 142 - static int __init h1940bt_init(void) 143 - { 144 - return platform_driver_register(&h1940bt_driver); 145 - } 146 - 147 - static void __exit h1940bt_exit(void) 148 - { 149 - platform_driver_unregister(&h1940bt_driver); 150 - } 151 - 152 - module_init(h1940bt_init); 153 - module_exit(h1940bt_exit); 141 + module_platform_driver(h1940bt_driver); 154 142 155 143 MODULE_AUTHOR("Arnaud Patard <arnaud.patard@rtp-net.org>"); 156 144 MODULE_DESCRIPTION("Driver for the iPAQ H1940 bluetooth chip");