aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd/lpc_sch.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2012-04-02 21:09:19 -0400
committerSamuel Ortiz <sameo@linux.intel.com>2012-05-01 06:00:21 -0400
commit38a36f5a6ab893fac87ffd1b1c92a491dfd71ea1 (patch)
tree07d49ac96d24c689ff4e44583130301e72c8ff8a /drivers/mfd/lpc_sch.c
parent6ed9f9c405f97cb7cda485f589cfa6c2bb3fb78e (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/lpc_sch.c')
-rw-r--r--drivers/mfd/lpc_sch.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/mfd/lpc_sch.c b/drivers/mfd/lpc_sch.c
index abc421364a45..27026eb924cd 100644
--- a/drivers/mfd/lpc_sch.c
+++ b/drivers/mfd/lpc_sch.c
@@ -167,18 +167,7 @@ static struct pci_driver lpc_sch_driver = {
167 .remove = __devexit_p(lpc_sch_remove), 167 .remove = __devexit_p(lpc_sch_remove),
168}; 168};
169 169
170static int __init lpc_sch_init(void) 170module_pci_driver(lpc_sch_driver);
171{
172 return pci_register_driver(&lpc_sch_driver);
173}
174
175static void __exit lpc_sch_exit(void)
176{
177 pci_unregister_driver(&lpc_sch_driver);
178}
179
180module_init(lpc_sch_init);
181module_exit(lpc_sch_exit);
182 171
183MODULE_AUTHOR("Denis Turischev <denis@compulab.co.il>"); 172MODULE_AUTHOR("Denis Turischev <denis@compulab.co.il>");
184MODULE_DESCRIPTION("LPC interface for Intel Poulsbo SCH"); 173MODULE_DESCRIPTION("LPC interface for Intel Poulsbo SCH");