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

module_pci_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/dw_mmc-pci.c |   13 +------------
 1 files changed, 1 insertions(+), 12 deletions(-)

diff --git a/drivers/mmc/host/dw_mmc-pci.c b/drivers/mmc/host/dw_mmc-pci.c
index dc0d25a..f5ab03d 100644
--- a/drivers/mmc/host/dw_mmc-pci.c
+++ b/drivers/mmc/host/dw_mmc-pci.c
@@ -140,18 +140,7 @@ static struct pci_driver dw_mci_pci_driver = {
 	},
 };
 
-static int __init dw_mci_init(void)
-{
-	return pci_register_driver(&dw_mci_pci_driver);
-}
-
-static void __exit dw_mci_exit(void)
-{
-	pci_unregister_driver(&dw_mci_pci_driver);
-}
-
-module_init(dw_mci_init);
-module_exit(dw_mci_exit);
+module_pci_driver(dw_mci_pci_driver);
 
 MODULE_DESCRIPTION("DW Multimedia Card PCI Interface driver");
 MODULE_AUTHOR("Shashidhar Hiremath <shashidharh@vayavyalabs.com>");
-- 
1.7.4.1


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

* Re: [PATCH] mmc: dw_mmc-pci: Use module_pci_driver
  2012-08-27  6:29 [PATCH] mmc: dw_mmc-pci: Use module_pci_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, shashidharh

Hi,

On Mon, Aug 27 2012, Sachin Kamat wrote:
> module_pci_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/dw_mmc-pci.c |   13 +------------
>  1 files changed, 1 insertions(+), 12 deletions(-)
>
> diff --git a/drivers/mmc/host/dw_mmc-pci.c b/drivers/mmc/host/dw_mmc-pci.c
> index dc0d25a..f5ab03d 100644
> --- a/drivers/mmc/host/dw_mmc-pci.c
> +++ b/drivers/mmc/host/dw_mmc-pci.c
> @@ -140,18 +140,7 @@ static struct pci_driver dw_mci_pci_driver = {
>  	},
>  };
>  
> -static int __init dw_mci_init(void)
> -{
> -	return pci_register_driver(&dw_mci_pci_driver);
> -}
> -
> -static void __exit dw_mci_exit(void)
> -{
> -	pci_unregister_driver(&dw_mci_pci_driver);
> -}
> -
> -module_init(dw_mci_init);
> -module_exit(dw_mci_exit);
> +module_pci_driver(dw_mci_pci_driver);
>  
>  MODULE_DESCRIPTION("DW Multimedia Card PCI Interface driver");
>  MODULE_AUTHOR("Shashidhar Hiremath <shashidharh@vayavyalabs.com>");

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:29 [PATCH] mmc: dw_mmc-pci: Use module_pci_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).