diff options
author | Axel Lin <axel.lin@gmail.com> | 2012-04-02 21:09:19 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-05-01 06:00:21 -0400 |
commit | 38a36f5a6ab893fac87ffd1b1c92a491dfd71ea1 (patch) | |
tree | 07d49ac96d24c689ff4e44583130301e72c8ff8a /drivers/mfd/janz-cmodio.c | |
parent | 6ed9f9c405f97cb7cda485f589cfa6c2bb3fb78e (diff) |
mfd: Use module_pci_driver
This patch converts the drivers in drivers/mfd/* to use module_pci_driver()
macro which makes the code smaller and a bit simpler.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Cc: Andres Salomon <dilinger@queued.net>
Cc: Ira W. Snyder <iws@ovro.caltech.edu>
Cc: Florian Fainelli <florian@openwrt.org>
Cc: Denis Turischev <denis@compulab.co.il>
Cc: Harald Welte <HaraldWelte@viatech.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/janz-cmodio.c')
-rw-r--r-- | drivers/mfd/janz-cmodio.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/drivers/mfd/janz-cmodio.c b/drivers/mfd/janz-cmodio.c index a9223ed1b7c5..2ea99989551a 100644 --- a/drivers/mfd/janz-cmodio.c +++ b/drivers/mfd/janz-cmodio.c | |||
@@ -283,23 +283,8 @@ static struct pci_driver cmodio_pci_driver = { | |||
283 | .remove = __devexit_p(cmodio_pci_remove), | 283 | .remove = __devexit_p(cmodio_pci_remove), |
284 | }; | 284 | }; |
285 | 285 | ||
286 | /* | 286 | module_pci_driver(cmodio_pci_driver); |
287 | * Module Init / Exit | ||
288 | */ | ||
289 | |||
290 | static int __init cmodio_init(void) | ||
291 | { | ||
292 | return pci_register_driver(&cmodio_pci_driver); | ||
293 | } | ||
294 | |||
295 | static void __exit cmodio_exit(void) | ||
296 | { | ||
297 | pci_unregister_driver(&cmodio_pci_driver); | ||
298 | } | ||
299 | 287 | ||
300 | MODULE_AUTHOR("Ira W. Snyder <iws@ovro.caltech.edu>"); | 288 | MODULE_AUTHOR("Ira W. Snyder <iws@ovro.caltech.edu>"); |
301 | MODULE_DESCRIPTION("Janz CMOD-IO PCI MODULbus Carrier Board Driver"); | 289 | MODULE_DESCRIPTION("Janz CMOD-IO PCI MODULbus Carrier Board Driver"); |
302 | MODULE_LICENSE("GPL"); | 290 | MODULE_LICENSE("GPL"); |
303 | |||
304 | module_init(cmodio_init); | ||
305 | module_exit(cmodio_exit); | ||