diff options
author | Geliang Tang <geliangtang@gmail.com> | 2016-11-14 13:52:25 +0100 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2016-11-15 10:34:47 +0100 |
commit | 5261bee8f29ca8f1a5ddd96ffcaa496414168ed0 (patch) | |
tree | d1339a862cbdab81e82bff59af3aaecd17cb997f /drivers | |
parent | gpio: tag line labels used for interrupts (diff) | |
download | linux-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.c | 7 |
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); |