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/cs5535-mfd.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/cs5535-mfd.c')
-rw-r--r-- | drivers/mfd/cs5535-mfd.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/mfd/cs5535-mfd.c b/drivers/mfd/cs5535-mfd.c index 315fef5d466a..3419e726de47 100644 --- a/drivers/mfd/cs5535-mfd.c +++ b/drivers/mfd/cs5535-mfd.c | |||
@@ -186,18 +186,7 @@ static struct pci_driver cs5535_mfd_driver = { | |||
186 | .remove = __devexit_p(cs5535_mfd_remove), | 186 | .remove = __devexit_p(cs5535_mfd_remove), |
187 | }; | 187 | }; |
188 | 188 | ||
189 | static int __init cs5535_mfd_init(void) | 189 | module_pci_driver(cs5535_mfd_driver); |
190 | { | ||
191 | return pci_register_driver(&cs5535_mfd_driver); | ||
192 | } | ||
193 | |||
194 | static void __exit cs5535_mfd_exit(void) | ||
195 | { | ||
196 | pci_unregister_driver(&cs5535_mfd_driver); | ||
197 | } | ||
198 | |||
199 | module_init(cs5535_mfd_init); | ||
200 | module_exit(cs5535_mfd_exit); | ||
201 | 190 | ||
202 | MODULE_AUTHOR("Andres Salomon <dilinger@queued.net>"); | 191 | MODULE_AUTHOR("Andres Salomon <dilinger@queued.net>"); |
203 | MODULE_DESCRIPTION("MFD driver for CS5535/CS5536 southbridge's ISA PCI device"); | 192 | MODULE_DESCRIPTION("MFD driver for CS5535/CS5536 southbridge's ISA PCI device"); |