summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-pch.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-pch.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-pch.c')
-rw-r--r--drivers/gpio/gpio-pch.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/gpio/gpio-pch.c b/drivers/gpio/gpio-pch.c
index e8729cc2ba2b..a05fdb6c464c 100644
--- a/drivers/gpio/gpio-pch.c
+++ b/drivers/gpio/gpio-pch.c
@@ -539,17 +539,7 @@ static struct pci_driver pch_gpio_driver = {
539 .resume = pch_gpio_resume 539 .resume = pch_gpio_resume
540}; 540};
541 541
542static int __init pch_gpio_pci_init(void) 542module_pci_driver(pch_gpio_driver);
543{
544 return pci_register_driver(&pch_gpio_driver);
545}
546module_init(pch_gpio_pci_init);
547
548static void __exit pch_gpio_pci_exit(void)
549{
550 pci_unregister_driver(&pch_gpio_driver);
551}
552module_exit(pch_gpio_pci_exit);
553 543
554MODULE_DESCRIPTION("PCH GPIO PCI Driver"); 544MODULE_DESCRIPTION("PCH GPIO PCI Driver");
555MODULE_LICENSE("GPL"); 545MODULE_LICENSE("GPL");