public inbox for linux-mmc@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] mmc: davinci_mmc: use module_platform_driver_probe()
@ 2013-03-05  3:53 Jingoo Han
  2013-03-05  3:54 ` [PATCH 2/2] mmc: mvsdio: " Jingoo Han
  2013-03-22 16:30 ` [PATCH 1/2] mmc: davinci_mmc: " Chris Ball
  0 siblings, 2 replies; 4+ messages in thread
From: Jingoo Han @ 2013-03-05  3:53 UTC (permalink / raw)
  To: 'Chris Ball'; +Cc: linux-mmc, 'Jingoo Han'

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

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
 drivers/mmc/host/davinci_mmc.c |   13 +------------
 1 files changed, 1 insertions(+), 12 deletions(-)

diff --git a/drivers/mmc/host/davinci_mmc.c b/drivers/mmc/host/davinci_mmc.c
index 2063677..7635e48 100644
--- a/drivers/mmc/host/davinci_mmc.c
+++ b/drivers/mmc/host/davinci_mmc.c
@@ -1410,18 +1410,7 @@ static struct platform_driver davinci_mmcsd_driver = {
 	.remove		= __exit_p(davinci_mmcsd_remove),
 };
 
-static int __init davinci_mmcsd_init(void)
-{
-	return platform_driver_probe(&davinci_mmcsd_driver,
-				     davinci_mmcsd_probe);
-}
-module_init(davinci_mmcsd_init);
-
-static void __exit davinci_mmcsd_exit(void)
-{
-	platform_driver_unregister(&davinci_mmcsd_driver);
-}
-module_exit(davinci_mmcsd_exit);
+module_platform_driver_probe(davinci_mmcsd_driver, davinci_mmcsd_probe);
 
 MODULE_AUTHOR("Texas Instruments India");
 MODULE_LICENSE("GPL");
-- 
1.7.2.5



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] mmc: mvsdio: use module_platform_driver_probe()
  2013-03-05  3:53 [PATCH 1/2] mmc: davinci_mmc: use module_platform_driver_probe() Jingoo Han
@ 2013-03-05  3:54 ` Jingoo Han
  2013-03-22 16:31   ` Chris Ball
  2013-03-22 16:30 ` [PATCH 1/2] mmc: davinci_mmc: " Chris Ball
  1 sibling, 1 reply; 4+ messages in thread
From: Jingoo Han @ 2013-03-05  3:54 UTC (permalink / raw)
  To: 'Chris Ball'; +Cc: linux-mmc, 'Jingoo Han'

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

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
 drivers/mmc/host/mvsdio.c |   13 +------------
 1 files changed, 1 insertions(+), 12 deletions(-)

diff --git a/drivers/mmc/host/mvsdio.c b/drivers/mmc/host/mvsdio.c
index 145cdaf..2b7d5b7 100644
--- a/drivers/mmc/host/mvsdio.c
+++ b/drivers/mmc/host/mvsdio.c
@@ -881,18 +881,7 @@ static struct platform_driver mvsd_driver = {
 	},
 };
 
-static int __init mvsd_init(void)
-{
-	return platform_driver_probe(&mvsd_driver, mvsd_probe);
-}
-
-static void __exit mvsd_exit(void)
-{
-	platform_driver_unregister(&mvsd_driver);
-}
-
-module_init(mvsd_init);
-module_exit(mvsd_exit);
+module_platform_driver_probe(mvsd_driver, mvsd_probe);
 
 /* maximum card clock frequency (default 50MHz) */
 module_param(maxfreq, int, 0);
-- 
1.7.2.5



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/2] mmc: davinci_mmc: use module_platform_driver_probe()
  2013-03-05  3:53 [PATCH 1/2] mmc: davinci_mmc: use module_platform_driver_probe() Jingoo Han
  2013-03-05  3:54 ` [PATCH 2/2] mmc: mvsdio: " Jingoo Han
@ 2013-03-22 16:30 ` Chris Ball
  1 sibling, 0 replies; 4+ messages in thread
From: Chris Ball @ 2013-03-22 16:30 UTC (permalink / raw)
  To: Jingoo Han; +Cc: linux-mmc

Hi,

On Mon, Mar 04 2013, Jingoo Han wrote:
> This patch uses module_platform_driver_probe() macro which makes
> the code smaller and simpler.
>
> Signed-off-by: Jingoo Han <jg1.han@samsung.com>
> ---
>  drivers/mmc/host/davinci_mmc.c |   13 +------------
>  1 files changed, 1 insertions(+), 12 deletions(-)
>
> diff --git a/drivers/mmc/host/davinci_mmc.c b/drivers/mmc/host/davinci_mmc.c
> index 2063677..7635e48 100644
> --- a/drivers/mmc/host/davinci_mmc.c
> +++ b/drivers/mmc/host/davinci_mmc.c
> @@ -1410,18 +1410,7 @@ static struct platform_driver davinci_mmcsd_driver = {
>  	.remove		= __exit_p(davinci_mmcsd_remove),
>  };
>  
> -static int __init davinci_mmcsd_init(void)
> -{
> -	return platform_driver_probe(&davinci_mmcsd_driver,
> -				     davinci_mmcsd_probe);
> -}
> -module_init(davinci_mmcsd_init);
> -
> -static void __exit davinci_mmcsd_exit(void)
> -{
> -	platform_driver_unregister(&davinci_mmcsd_driver);
> -}
> -module_exit(davinci_mmcsd_exit);
> +module_platform_driver_probe(davinci_mmcsd_driver, davinci_mmcsd_probe);
>  
>  MODULE_AUTHOR("Texas Instruments India");
>  MODULE_LICENSE("GPL");

Thanks, pushed to mmc-next for 3.10.

- Chris.
-- 
Chris Ball   <cjb@laptop.org>   <http://printf.net/>
One Laptop Per Child

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 2/2] mmc: mvsdio: use module_platform_driver_probe()
  2013-03-05  3:54 ` [PATCH 2/2] mmc: mvsdio: " Jingoo Han
@ 2013-03-22 16:31   ` Chris Ball
  0 siblings, 0 replies; 4+ messages in thread
From: Chris Ball @ 2013-03-22 16:31 UTC (permalink / raw)
  To: Jingoo Han; +Cc: linux-mmc

Hi,

On Mon, Mar 04 2013, Jingoo Han wrote:
> This patch uses module_platform_driver_probe() macro which makes
> the code smaller and simpler.
>
> Signed-off-by: Jingoo Han <jg1.han@samsung.com>
> ---
>  drivers/mmc/host/mvsdio.c |   13 +------------
>  1 files changed, 1 insertions(+), 12 deletions(-)
>
> diff --git a/drivers/mmc/host/mvsdio.c b/drivers/mmc/host/mvsdio.c
> index 145cdaf..2b7d5b7 100644
> --- a/drivers/mmc/host/mvsdio.c
> +++ b/drivers/mmc/host/mvsdio.c
> @@ -881,18 +881,7 @@ static struct platform_driver mvsd_driver = {
>  	},
>  };
>  
> -static int __init mvsd_init(void)
> -{
> -	return platform_driver_probe(&mvsd_driver, mvsd_probe);
> -}
> -
> -static void __exit mvsd_exit(void)
> -{
> -	platform_driver_unregister(&mvsd_driver);
> -}
> -
> -module_init(mvsd_init);
> -module_exit(mvsd_exit);
> +module_platform_driver_probe(mvsd_driver, mvsd_probe);
>  
>  /* maximum card clock frequency (default 50MHz) */
>  module_param(maxfreq, int, 0);

Thanks, pushed to mmc-next for 3.10.

- Chris.
-- 
Chris Ball   <cjb@laptop.org>   <http://printf.net/>
One Laptop Per Child

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-03-22 16:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-05  3:53 [PATCH 1/2] mmc: davinci_mmc: use module_platform_driver_probe() Jingoo Han
2013-03-05  3:54 ` [PATCH 2/2] mmc: mvsdio: " Jingoo Han
2013-03-22 16:31   ` Chris Ball
2013-03-22 16:30 ` [PATCH 1/2] mmc: davinci_mmc: " Chris Ball

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox