diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2012-08-27 02:29:17 -0400 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2012-09-04 13:58:30 -0400 |
commit | 350e3e00fbebf6e01855e0096b7fd41b2479e858 (patch) | |
tree | a41188aa7ef3955cbe0cf4f45e985158109204bf /drivers/mmc | |
parent | acc696463d1aa8db0c9d20f567789e0cb2ae1de0 (diff) |
mmc: dw_mmc-pci: Use module_pci_driver
module_pci_driver makes the code simpler by eliminating module_init
and module_exit calls.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | 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 dc0d25a013e0..f5ab03d32fb9 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 = { | |||
140 | }, | 140 | }, |
141 | }; | 141 | }; |
142 | 142 | ||
143 | static int __init dw_mci_init(void) | 143 | module_pci_driver(dw_mci_pci_driver); |
144 | { | ||
145 | return pci_register_driver(&dw_mci_pci_driver); | ||
146 | } | ||
147 | |||
148 | static void __exit dw_mci_exit(void) | ||
149 | { | ||
150 | pci_unregister_driver(&dw_mci_pci_driver); | ||
151 | } | ||
152 | |||
153 | module_init(dw_mci_init); | ||
154 | module_exit(dw_mci_exit); | ||
155 | 144 | ||
156 | MODULE_DESCRIPTION("DW Multimedia Card PCI Interface driver"); | 145 | MODULE_DESCRIPTION("DW Multimedia Card PCI Interface driver"); |
157 | MODULE_AUTHOR("Shashidhar Hiremath <shashidharh@vayavyalabs.com>"); | 146 | MODULE_AUTHOR("Shashidhar Hiremath <shashidharh@vayavyalabs.com>"); |