RE: [PATCH 1/2] ARM: S3C24XX: Use module_platform_driver macro in h1940-bluetooth.c

2012-09-06 Thread Kukjin Kim
Sachin Kamat wrote:
 
 module_platform_driver simplifies the code by eliminating
 module_init and module_exit calls.
 
 Signed-off-by: Sachin Kamat sachin.ka...@linaro.org
 ---
  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 a5eeb62..57aee91 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 arnaud.pat...@rtp-net.org);
  MODULE_DESCRIPTION(Driver for the iPAQ H1940 bluetooth chip);
 --
 1.7.4.1

Applied, thanks.

Thanks.

Best regards,
Kgene.
--
Kukjin Kim kgene@samsung.com, Senior Engineer,
SW Solution Development Team, Samsung Electronics Co., Ltd.

--
To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH 1/2] ARM: S3C24XX: Use module_platform_driver macro in h1940-bluetooth.c

2012-09-05 Thread Sachin Kamat
module_platform_driver simplifies the code by eliminating
module_init and module_exit calls.

Signed-off-by: Sachin Kamat sachin.ka...@linaro.org
---
 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 a5eeb62..57aee91 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 arnaud.pat...@rtp-net.org);
 MODULE_DESCRIPTION(Driver for the iPAQ H1940 bluetooth chip);
-- 
1.7.4.1

--
To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html