Skip to content

Commit

Permalink
gpio: intel-mid: use builtin_pci_driver
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Geliang Tang authored and Linus Walleij committed Nov 15, 2016
1 parent 3940c34 commit 5261bee
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions drivers/gpio/gpio-intel-mid.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit 5261bee

Please sign in to comment.