aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-sodaville.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2012-04-06 08:13:30 -0400
committerGrant Likely <grant.likely@secretlab.ca>2012-04-07 16:30:35 -0400
commit93baa65fe50a83056c97973de2300337b000472e (patch)
treee91ed77013c1219d2e90581a8b409ff779a92630 /drivers/gpio/gpio-sodaville.c
parentc29985dd3e26118c8ba64105e09b85b714462765 (diff)
gpio: Convert drivers to use module_pci_driver()
This patch converts the drivers in drivers/gpio/* to use module_pci_driver() macro which makes the code smaller and a bit simpler by having less boilerplate. Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/gpio/gpio-sodaville.c')
-rw-r--r--drivers/gpio/gpio-sodaville.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/gpio/gpio-sodaville.c b/drivers/gpio/gpio-sodaville.c
index 9ba15d31d242..e20dc737dd4e 100644
--- a/drivers/gpio/gpio-sodaville.c
+++ b/drivers/gpio/gpio-sodaville.c
@@ -285,17 +285,7 @@ static struct pci_driver sdv_gpio_driver = {
285 .remove = sdv_gpio_remove, 285 .remove = sdv_gpio_remove,
286}; 286};
287 287
288static int __init sdv_gpio_init(void) 288module_pci_driver(sdv_gpio_driver);
289{
290 return pci_register_driver(&sdv_gpio_driver);
291}
292module_init(sdv_gpio_init);
293
294static void __exit sdv_gpio_exit(void)
295{
296 pci_unregister_driver(&sdv_gpio_driver);
297}
298module_exit(sdv_gpio_exit);
299 289
300MODULE_AUTHOR("Hans J. Koch <hjk@linutronix.de>"); 290MODULE_AUTHOR("Hans J. Koch <hjk@linutronix.de>");
301MODULE_DESCRIPTION("GPIO interface for Intel Sodaville SoCs"); 291MODULE_DESCRIPTION("GPIO interface for Intel Sodaville SoCs");