summaryrefslogtreecommitdiff
path: root/drivers/mfd/cs5535-mfd.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2012-04-03 09:09:19 +0800
committerSamuel Ortiz <sameo@linux.intel.com>2012-05-01 12:00:21 +0200
commit38a36f5a6ab893fac87ffd1b1c92a491dfd71ea1 (patch)
tree07d49ac96d24c689ff4e44583130301e72c8ff8a /drivers/mfd/cs5535-mfd.c
parent6ed9f9c405f97cb7cda485f589cfa6c2bb3fb78e (diff)
downloadlwn-38a36f5a6ab893fac87ffd1b1c92a491dfd71ea1.tar.gz
lwn-38a36f5a6ab893fac87ffd1b1c92a491dfd71ea1.zip
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.c13
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 = {
.remove = __devexit_p(cs5535_mfd_remove),
};
-static int __init cs5535_mfd_init(void)
-{
- return pci_register_driver(&cs5535_mfd_driver);
-}
-
-static void __exit cs5535_mfd_exit(void)
-{
- pci_unregister_driver(&cs5535_mfd_driver);
-}
-
-module_init(cs5535_mfd_init);
-module_exit(cs5535_mfd_exit);
+module_pci_driver(cs5535_mfd_driver);
MODULE_AUTHOR("Andres Salomon <dilinger@queued.net>");
MODULE_DESCRIPTION("MFD driver for CS5535/CS5536 southbridge's ISA PCI device");