diff options
Diffstat (limited to 'drivers/gpio/gpio-pch.c')
-rw-r--r-- | drivers/gpio/gpio-pch.c | 12 |
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 | ||
542 | static int __init pch_gpio_pci_init(void) | 542 | module_pci_driver(pch_gpio_driver); |
543 | { | ||
544 | return pci_register_driver(&pch_gpio_driver); | ||
545 | } | ||
546 | module_init(pch_gpio_pci_init); | ||
547 | |||
548 | static void __exit pch_gpio_pci_exit(void) | ||
549 | { | ||
550 | pci_unregister_driver(&pch_gpio_driver); | ||
551 | } | ||
552 | module_exit(pch_gpio_pci_exit); | ||
553 | 543 | ||
554 | MODULE_DESCRIPTION("PCH GPIO PCI Driver"); | 544 | MODULE_DESCRIPTION("PCH GPIO PCI Driver"); |
555 | MODULE_LICENSE("GPL"); | 545 | MODULE_LICENSE("GPL"); |