Re: [PATCH 1/3] mfd: ab3100-otp: use module_platform_driver_probe()

2013-04-05 Thread Samuel Ortiz
Hi Jingoo,

On Tue, Mar 05, 2013 at 01:47:06PM +0900, Jingoo Han wrote:
> This patch uses module_platform_driver_probe() macro which makes
> the code smaller and simpler.
> 
> Signed-off-by: Jingoo Han 
> ---
>  drivers/mfd/ab3100-otp.c |   14 +-
>  1 files changed, 1 insertions(+), 13 deletions(-)
All 3 patches applied, thanks.

Cheers,
Samuel.

-- 
Intel Open Source Technology Centre
http://oss.intel.com/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 1/3] mfd: ab3100-otp: use module_platform_driver_probe()

2013-04-05 Thread Samuel Ortiz
Hi Jingoo,

On Tue, Mar 05, 2013 at 01:47:06PM +0900, Jingoo Han wrote:
 This patch uses module_platform_driver_probe() macro which makes
 the code smaller and simpler.
 
 Signed-off-by: Jingoo Han jg1@samsung.com
 ---
  drivers/mfd/ab3100-otp.c |   14 +-
  1 files changed, 1 insertions(+), 13 deletions(-)
All 3 patches applied, thanks.

Cheers,
Samuel.

-- 
Intel Open Source Technology Centre
http://oss.intel.com/
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 1/3] mfd: ab3100-otp: use module_platform_driver_probe()

2013-03-06 Thread Linus Walleij
On Tue, Mar 5, 2013 at 5:47 AM, Jingoo Han  wrote:

> This patch uses module_platform_driver_probe() macro which makes
> the code smaller and simpler.
>
> Signed-off-by: Jingoo Han 

Acked-by: Linus Walleij 

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 1/3] mfd: ab3100-otp: use module_platform_driver_probe()

2013-03-06 Thread Linus Walleij
On Tue, Mar 5, 2013 at 5:47 AM, Jingoo Han jg1@samsung.com wrote:

 This patch uses module_platform_driver_probe() macro which makes
 the code smaller and simpler.

 Signed-off-by: Jingoo Han jg1@samsung.com

Acked-by: Linus Walleij linus.wall...@linaro.org

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH 1/3] mfd: ab3100-otp: use module_platform_driver_probe()

2013-03-04 Thread Jingoo Han
This patch uses module_platform_driver_probe() macro which makes
the code smaller and simpler.

Signed-off-by: Jingoo Han 
---
 drivers/mfd/ab3100-otp.c |   14 +-
 1 files changed, 1 insertions(+), 13 deletions(-)

diff --git a/drivers/mfd/ab3100-otp.c b/drivers/mfd/ab3100-otp.c
index 8440010..d7ce016 100644
--- a/drivers/mfd/ab3100-otp.c
+++ b/drivers/mfd/ab3100-otp.c
@@ -248,19 +248,7 @@ static struct platform_driver ab3100_otp_driver = {
.remove  = __exit_p(ab3100_otp_remove),
 };
 
-static int __init ab3100_otp_init(void)
-{
-   return platform_driver_probe(_otp_driver,
-ab3100_otp_probe);
-}
-
-static void __exit ab3100_otp_exit(void)
-{
-   platform_driver_unregister(_otp_driver);
-}
-
-module_init(ab3100_otp_init);
-module_exit(ab3100_otp_exit);
+module_platform_driver_probe(ab3100_otp_driver, ab3100_otp_probe);
 
 MODULE_AUTHOR("Linus Walleij ");
 MODULE_DESCRIPTION("AB3100 OTP Readout Driver");
-- 
1.7.2.5


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH 1/3] mfd: ab3100-otp: use module_platform_driver_probe()

2013-03-04 Thread Jingoo Han
This patch uses module_platform_driver_probe() macro which makes
the code smaller and simpler.

Signed-off-by: Jingoo Han jg1@samsung.com
---
 drivers/mfd/ab3100-otp.c |   14 +-
 1 files changed, 1 insertions(+), 13 deletions(-)

diff --git a/drivers/mfd/ab3100-otp.c b/drivers/mfd/ab3100-otp.c
index 8440010..d7ce016 100644
--- a/drivers/mfd/ab3100-otp.c
+++ b/drivers/mfd/ab3100-otp.c
@@ -248,19 +248,7 @@ static struct platform_driver ab3100_otp_driver = {
.remove  = __exit_p(ab3100_otp_remove),
 };
 
-static int __init ab3100_otp_init(void)
-{
-   return platform_driver_probe(ab3100_otp_driver,
-ab3100_otp_probe);
-}
-
-static void __exit ab3100_otp_exit(void)
-{
-   platform_driver_unregister(ab3100_otp_driver);
-}
-
-module_init(ab3100_otp_init);
-module_exit(ab3100_otp_exit);
+module_platform_driver_probe(ab3100_otp_driver, ab3100_otp_probe);
 
 MODULE_AUTHOR(Linus Walleij linus.wall...@stericsson.com);
 MODULE_DESCRIPTION(AB3100 OTP Readout Driver);
-- 
1.7.2.5


--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/