summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorGeliang Tang <geliangtang@gmail.com>2016-11-14 13:52:25 +0100
committerLinus Walleij <linus.walleij@linaro.org>2016-11-15 10:34:47 +0100
commit5261bee8f29ca8f1a5ddd96ffcaa496414168ed0 (patch)
treed1339a862cbdab81e82bff59af3aaecd17cb997f /drivers
parentgpio: tag line labels used for interrupts (diff)
downloadlinux-5261bee8f29ca8f1a5ddd96ffcaa496414168ed0.tar.xz
linux-5261bee8f29ca8f1a5ddd96ffcaa496414168ed0.zip
gpio: intel-mid: use builtin_pci_driver
Use builtin_pci_driver() helper to simplify the code. Signed-off-by: Geliang Tang <geliangtang@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpio/gpio-intel-mid.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/gpio/gpio-intel-mid.c b/drivers/gpio/gpio-intel-mid.c
index 164de64b11fc..a1e44c221f66 100644
--- a/drivers/gpio/gpio-intel-mid.c
+++ b/drivers/gpio/gpio-intel-mid.c
@@ -421,9 +421,4 @@ static struct pci_driver intel_gpio_driver = {
},
};
-static int __init intel_gpio_init(void)
-{
- return pci_register_driver(&intel_gpio_driver);
-}
-
-device_initcall(intel_gpio_init);
+builtin_pci_driver(intel_gpio_driver);