summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-intel-mid.c
diff options
context:
space:
mode:
authorGeliang Tang <geliangtang@gmail.com>2016-11-14 20:52:25 +0800
committerLinus Walleij <linus.walleij@linaro.org>2016-11-15 10:34:47 +0100
commit5261bee8f29ca8f1a5ddd96ffcaa496414168ed0 (patch)
treed1339a862cbdab81e82bff59af3aaecd17cb997f /drivers/gpio/gpio-intel-mid.c
parent3940c34ac898b15afb72271394444199401bbe99 (diff)
downloadlinux-stable-5261bee8f29ca8f1a5ddd96ffcaa496414168ed0.tar.gz
linux-stable-5261bee8f29ca8f1a5ddd96ffcaa496414168ed0.tar.bz2
linux-stable-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/gpio/gpio-intel-mid.c')
-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);