diff options
author | Axel Lin <axel.lin@gmail.com> | 2012-04-04 10:29:32 -0400 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2012-04-10 16:11:34 -0400 |
commit | 8ebb35fd7ad07ab9a88a35eedd4f89a1e2a8fa55 (patch) | |
tree | 0da22d150c64ef9078fd2f36b32ab73556cf5dd0 /drivers/spi/spi-pxa2xx-pci.c | |
parent | 39f8052d2e0c35533e776ef1235e4cc32cc35d02 (diff) |
spi: use module_pci_driver
This patch converts the drivers in drivers/spi/* to use module_pci_driver()
macro which makes the code smaller and a bit simpler.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/spi/spi-pxa2xx-pci.c')
-rw-r--r-- | drivers/spi/spi-pxa2xx-pci.c | 12 |
1 files changed, 1 insertions, 11 deletions
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"); |