diff options
author | Axel Lin <axel.lin@gmail.com> | 2012-04-06 14:13:30 +0200 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2012-04-07 22:30:35 +0200 |
commit | 93baa65fe50a83056c97973de2300337b000472e (patch) | |
tree | e91ed77013c1219d2e90581a8b409ff779a92630 /drivers/gpio/gpio-pch.c | |
parent | gpio/pca953x: Update GPIO_PCA953X Kconfig entry to include more supported dev... (diff) | |
download | linux-93baa65fe50a83056c97973de2300337b000472e.tar.xz linux-93baa65fe50a83056c97973de2300337b000472e.zip |
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.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 = { .resume = pch_gpio_resume }; -static int __init pch_gpio_pci_init(void) -{ - return pci_register_driver(&pch_gpio_driver); -} -module_init(pch_gpio_pci_init); - -static void __exit pch_gpio_pci_exit(void) -{ - pci_unregister_driver(&pch_gpio_driver); -} -module_exit(pch_gpio_pci_exit); +module_pci_driver(pch_gpio_driver); MODULE_DESCRIPTION("PCH GPIO PCI Driver"); MODULE_LICENSE("GPL"); |