Skip to content

Commit

Permalink
gpio: etraxfs: use builtin_platform_driver
Browse files Browse the repository at this point in the history
Use builtin_platform_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 22, 2016
1 parent 3107d57 commit 6f1bd54
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions drivers/gpio/gpio-etraxfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -471,9 +471,4 @@ static struct platform_driver etraxfs_gpio_driver = {
.probe = etraxfs_gpio_probe,
};

static int __init etraxfs_gpio_init(void)
{
return platform_driver_register(&etraxfs_gpio_driver);
}

device_initcall(etraxfs_gpio_init);
builtin_platform_driver(etraxfs_gpio_driver);

0 comments on commit 6f1bd54

Please sign in to comment.