linux-mmc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mmc: mmc_spi: Use module_spi_driver
@ 2012-08-27  6:23 Sachin Kamat
  2012-08-30 15:11 ` Chris Ball
  0 siblings, 1 reply; 2+ messages in thread
From: Sachin Kamat @ 2012-08-27  6:23 UTC (permalink / raw)
  To: linux-mmc; +Cc: cjb, sachin.kamat, patches

module_spi_driver makes the code simpler by eliminating
module_init and module_exit calls.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
 drivers/mmc/host/mmc_spi.c |   15 +--------------
 1 files changed, 1 insertions(+), 14 deletions(-)

diff --git a/drivers/mmc/host/mmc_spi.c b/drivers/mmc/host/mmc_spi.c
index 273306c..a600eab 100644
--- a/drivers/mmc/host/mmc_spi.c
+++ b/drivers/mmc/host/mmc_spi.c
@@ -1532,20 +1532,7 @@ static struct spi_driver mmc_spi_driver = {
 	.remove =	__devexit_p(mmc_spi_remove),
 };
 
-
-static int __init mmc_spi_init(void)
-{
-	return spi_register_driver(&mmc_spi_driver);
-}
-module_init(mmc_spi_init);
-
-
-static void __exit mmc_spi_exit(void)
-{
-	spi_unregister_driver(&mmc_spi_driver);
-}
-module_exit(mmc_spi_exit);
-
+module_spi_driver(mmc_spi_driver);
 
 MODULE_AUTHOR("Mike Lavender, David Brownell, "
 		"Hans-Peter Nilsson, Jan Nikitenko");
-- 
1.7.4.1


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

* Re: [PATCH] mmc: mmc_spi: Use module_spi_driver
  2012-08-27  6:23 [PATCH] mmc: mmc_spi: Use module_spi_driver Sachin Kamat
@ 2012-08-30 15:11 ` Chris Ball
  0 siblings, 0 replies; 2+ messages in thread
From: Chris Ball @ 2012-08-30 15:11 UTC (permalink / raw)
  To: Sachin Kamat; +Cc: linux-mmc, patches

Hi,

On Mon, Aug 27 2012, Sachin Kamat wrote:
> module_spi_driver makes the code simpler by eliminating
> module_init and module_exit calls.
>
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
> ---
>  drivers/mmc/host/mmc_spi.c |   15 +--------------
>  1 files changed, 1 insertions(+), 14 deletions(-)
>
> diff --git a/drivers/mmc/host/mmc_spi.c b/drivers/mmc/host/mmc_spi.c
> index 273306c..a600eab 100644
> --- a/drivers/mmc/host/mmc_spi.c
> +++ b/drivers/mmc/host/mmc_spi.c
> @@ -1532,20 +1532,7 @@ static struct spi_driver mmc_spi_driver = {
>  	.remove =	__devexit_p(mmc_spi_remove),
>  };
>  
> -
> -static int __init mmc_spi_init(void)
> -{
> -	return spi_register_driver(&mmc_spi_driver);
> -}
> -module_init(mmc_spi_init);
> -
> -
> -static void __exit mmc_spi_exit(void)
> -{
> -	spi_unregister_driver(&mmc_spi_driver);
> -}
> -module_exit(mmc_spi_exit);
> -
> +module_spi_driver(mmc_spi_driver);
>  
>  MODULE_AUTHOR("Mike Lavender, David Brownell, "
>  		"Hans-Peter Nilsson, Jan Nikitenko");

Thanks, pushed to mmc-next for 3.7.

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

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

end of thread, other threads:[~2012-08-30 15:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-27  6:23 [PATCH] mmc: mmc_spi: Use module_spi_driver Sachin Kamat
2012-08-30 15:11 ` Chris Ball

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).