]> git.karo-electronics.de Git - linux-beck.git/commitdiff
gpio: vf610: use builtin_platform_driver
authorGeliang Tang <geliangtang@gmail.com>
Wed, 23 Nov 2016 14:47:48 +0000 (22:47 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 24 Nov 2016 15:19:02 +0000 (16:19 +0100)
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>
drivers/gpio/gpio-vf610.c

index 3edb09cb9ee08080ca6da66e369c8729e57e8392..521fbe338589d03ea9cb1777a97a99c1261fc0f6 100644 (file)
@@ -283,8 +283,4 @@ static struct platform_driver vf610_gpio_driver = {
        .probe          = vf610_gpio_probe,
 };
 
-static int __init gpio_vf610_init(void)
-{
-       return platform_driver_register(&vf610_gpio_driver);
-}
-device_initcall(gpio_vf610_init);
+builtin_platform_driver(vf610_gpio_driver);