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/vx855.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/vx855.c')
-rw-r--r-- | drivers/mfd/vx855.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/mfd/vx855.c b/drivers/mfd/vx855.c index b73cc15e0081..872aff21e4be 100644 --- a/drivers/mfd/vx855.c +++ b/drivers/mfd/vx855.c | |||
@@ -131,17 +131,7 @@ static struct pci_driver vx855_pci_driver = { | |||
131 | .remove = __devexit_p(vx855_remove), | 131 | .remove = __devexit_p(vx855_remove), |
132 | }; | 132 | }; |
133 | 133 | ||
134 | static int vx855_init(void) | 134 | module_pci_driver(vx855_pci_driver); |
135 | { | ||
136 | return pci_register_driver(&vx855_pci_driver); | ||
137 | } | ||
138 | module_init(vx855_init); | ||
139 | |||
140 | static void vx855_exit(void) | ||
141 | { | ||
142 | pci_unregister_driver(&vx855_pci_driver); | ||
143 | } | ||
144 | module_exit(vx855_exit); | ||
145 | 135 | ||
146 | MODULE_LICENSE("GPL"); | 136 | MODULE_LICENSE("GPL"); |
147 | MODULE_AUTHOR("Harald Welte <HaraldWelte@viatech.com>"); | 137 | MODULE_AUTHOR("Harald Welte <HaraldWelte@viatech.com>"); |