* [PATCH] mmc: sdhci-pci: Use module_pci_driver
@ 2012-08-27 6:27 Sachin Kamat
2012-08-30 15:11 ` Chris Ball
0 siblings, 1 reply; 2+ messages in thread
From: Sachin Kamat @ 2012-08-27 6:27 UTC (permalink / raw)
To: linux-mmc; +Cc: cjb, sachin.kamat, patches
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/sdhci-pci.c | 19 +------------------
1 files changed, 1 insertions(+), 18 deletions(-)
diff --git a/drivers/mmc/host/sdhci-pci.c b/drivers/mmc/host/sdhci-pci.c
index 504da71..3f0794e 100644
--- a/drivers/mmc/host/sdhci-pci.c
+++ b/drivers/mmc/host/sdhci-pci.c
@@ -1476,24 +1476,7 @@ static struct pci_driver sdhci_driver = {
},
};
-/*****************************************************************************\
- * *
- * Driver init/exit *
- * *
-\*****************************************************************************/
-
-static int __init sdhci_drv_init(void)
-{
- return pci_register_driver(&sdhci_driver);
-}
-
-static void __exit sdhci_drv_exit(void)
-{
- pci_unregister_driver(&sdhci_driver);
-}
-
-module_init(sdhci_drv_init);
-module_exit(sdhci_drv_exit);
+module_pci_driver(sdhci_driver);
MODULE_AUTHOR("Pierre Ossman <pierre@ossman.eu>");
MODULE_DESCRIPTION("Secure Digital Host Controller Interface PCI driver");
--
1.7.4.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] mmc: sdhci-pci: Use module_pci_driver
2012-08-27 6:27 [PATCH] mmc: sdhci-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
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/sdhci-pci.c | 19 +------------------
> 1 files changed, 1 insertions(+), 18 deletions(-)
>
> diff --git a/drivers/mmc/host/sdhci-pci.c b/drivers/mmc/host/sdhci-pci.c
> index 504da71..3f0794e 100644
> --- a/drivers/mmc/host/sdhci-pci.c
> +++ b/drivers/mmc/host/sdhci-pci.c
> @@ -1476,24 +1476,7 @@ static struct pci_driver sdhci_driver = {
> },
> };
>
> -/*****************************************************************************\
> - * *
> - * Driver init/exit *
> - * *
> -\*****************************************************************************/
> -
> -static int __init sdhci_drv_init(void)
> -{
> - return pci_register_driver(&sdhci_driver);
> -}
> -
> -static void __exit sdhci_drv_exit(void)
> -{
> - pci_unregister_driver(&sdhci_driver);
> -}
> -
> -module_init(sdhci_drv_init);
> -module_exit(sdhci_drv_exit);
> +module_pci_driver(sdhci_driver);
>
> MODULE_AUTHOR("Pierre Ossman <pierre@ossman.eu>");
> MODULE_DESCRIPTION("Secure Digital Host Controller Interface PCI driver");
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:27 [PATCH] mmc: sdhci-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).