diff options
author | Sachin Kamat <[email protected]> | 2012-09-07 06:33:24 +0900 |
---|---|---|
committer | Kukjin Kim <[email protected]> | 2012-09-07 06:33:24 +0900 |
commit | 1fffc8b20c36957a7b7dea043153a6e2550168e7 (patch) | |
tree | 4f0fddc20a97d1e2316b366e7ec4aa8a92916084 | |
parent | 4e321a3994e05baa342f8302c5a1584f1463e455 (diff) |
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 <[email protected]>
Signed-off-by: Kukjin Kim <[email protected]>
-rw-r--r-- | arch/arm/mach-s3c24xx/h1940-bluetooth.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/arch/arm/mach-s3c24xx/h1940-bluetooth.c b/arch/arm/mach-s3c24xx/h1940-bluetooth.c index a5eeb62ce1c2..57aee916bdb1 100644 --- a/arch/arm/mach-s3c24xx/h1940-bluetooth.c +++ b/arch/arm/mach-s3c24xx/h1940-bluetooth.c @@ -138,19 +138,7 @@ static struct platform_driver h1940bt_driver = { .remove = h1940bt_remove, }; - -static int __init h1940bt_init(void) -{ - return platform_driver_register(&h1940bt_driver); -} - -static void __exit h1940bt_exit(void) -{ - platform_driver_unregister(&h1940bt_driver); -} - -module_init(h1940bt_init); -module_exit(h1940bt_exit); +module_platform_driver(h1940bt_driver); MODULE_AUTHOR("Arnaud Patard <[email protected]>"); MODULE_DESCRIPTION("Driver for the iPAQ H1940 bluetooth chip"); |