summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/rdc321x-southbridge.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2012-04-03 03:09:19 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2012-05-01 12:00:21 +0200
commit38a36f5a6ab893fac87ffd1b1c92a491dfd71ea1 (patch)
tree07d49ac96d24c689ff4e44583130301e72c8ff8a /drivers/mfd/rdc321x-southbridge.c
parentgpio: Add support for Intel ICHx/3100/Series[56] GPIO (diff)
downloadlinux-38a36f5a6ab893fac87ffd1b1c92a491dfd71ea1.tar.xz
linux-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/rdc321x-southbridge.c')
-rw-r--r--drivers/mfd/rdc321x-southbridge.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/mfd/rdc321x-southbridge.c b/drivers/mfd/rdc321x-southbridge.c
index 809bd4a61089..685d61e431ad 100644
--- a/drivers/mfd/rdc321x-southbridge.c
+++ b/drivers/mfd/rdc321x-southbridge.c
@@ -108,18 +108,7 @@ static struct pci_driver rdc321x_sb_driver = {
.remove = __devexit_p(rdc321x_sb_remove),
};
-static int __init rdc321x_sb_init(void)
-{
- return pci_register_driver(&rdc321x_sb_driver);
-}
-
-static void __exit rdc321x_sb_exit(void)
-{
- pci_unregister_driver(&rdc321x_sb_driver);
-}
-
-module_init(rdc321x_sb_init);
-module_exit(rdc321x_sb_exit);
+module_pci_driver(rdc321x_sb_driver);
MODULE_AUTHOR("Florian Fainelli <florian@openwrt.org>");
MODULE_LICENSE("GPL");