diff options
-rw-r--r-- | drivers/spi/spi-dw-pci.c | 13 | ||||
-rw-r--r-- | drivers/spi/spi-pxa2xx-pci.c | 12 |
2 files changed, 2 insertions, 23 deletions
diff --git a/drivers/spi/spi-dw-pci.c b/drivers/spi/spi-dw-pci.c index 14f7cc9523f0..ff81abbb3066 100644 --- a/drivers/spi/spi-dw-pci.c +++ b/drivers/spi/spi-dw-pci.c | |||
@@ -164,18 +164,7 @@ static struct pci_driver dw_spi_driver = { | |||
164 | .resume = spi_resume, | 164 | .resume = spi_resume, |
165 | }; | 165 | }; |
166 | 166 | ||
167 | static int __init mrst_spi_init(void) | 167 | module_pci_driver(dw_spi_driver); |
168 | { | ||
169 | return pci_register_driver(&dw_spi_driver); | ||
170 | } | ||
171 | |||
172 | static void __exit mrst_spi_exit(void) | ||
173 | { | ||
174 | pci_unregister_driver(&dw_spi_driver); | ||
175 | } | ||
176 | |||
177 | module_init(mrst_spi_init); | ||
178 | module_exit(mrst_spi_exit); | ||
179 | 168 | ||
180 | MODULE_AUTHOR("Feng Tang <feng.tang@intel.com>"); | 169 | MODULE_AUTHOR("Feng Tang <feng.tang@intel.com>"); |
181 | MODULE_DESCRIPTION("PCI interface driver for DW SPI Core"); | 170 | MODULE_DESCRIPTION("PCI interface driver for DW SPI Core"); |
diff --git a/drivers/spi/spi-pxa2xx-pci.c b/drivers/spi/spi-pxa2xx-pci.c index 3fb44afe27b4..9f6ba34b172c 100644 --- a/drivers/spi/spi-pxa2xx-pci.c +++ b/drivers/spi/spi-pxa2xx-pci.c | |||
@@ -164,17 +164,7 @@ static struct pci_driver ce4100_spi_driver = { | |||
164 | .remove = __devexit_p(ce4100_spi_remove), | 164 | .remove = __devexit_p(ce4100_spi_remove), |
165 | }; | 165 | }; |
166 | 166 | ||
167 | static int __init ce4100_spi_init(void) | 167 | module_pci_driver(ce4100_spi_driver); |
168 | { | ||
169 | return pci_register_driver(&ce4100_spi_driver); | ||
170 | } | ||
171 | module_init(ce4100_spi_init); | ||
172 | |||
173 | static void __exit ce4100_spi_exit(void) | ||
174 | { | ||
175 | pci_unregister_driver(&ce4100_spi_driver); | ||
176 | } | ||
177 | module_exit(ce4100_spi_exit); | ||
178 | 168 | ||
179 | MODULE_DESCRIPTION("CE4100 PCI-SPI glue code for PXA's driver"); | 169 | MODULE_DESCRIPTION("CE4100 PCI-SPI glue code for PXA's driver"); |
180 | MODULE_LICENSE("GPL v2"); | 170 | MODULE_LICENSE("GPL v2"); |