gpio: mb86s7x: use builtin_platform_driver
authorGeliang Tang <geliangtang@gmail.com>
Fri, 18 Nov 2016 14:12:28 +0000 (22:12 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 22 Nov 2016 09:16:17 +0000 (10:16 +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-mb86s7x.c

index d55af50e70347958fb7609b3bcb77bb0677d8563..ffb73f688ae13062595b3f83a8730086e800ab03 100644 (file)
@@ -217,8 +217,4 @@ static struct platform_driver mb86s70_gpio_driver = {
        .remove = mb86s70_gpio_remove,
 };
 
-static int __init mb86s70_gpio_init(void)
-{
-       return platform_driver_register(&mb86s70_gpio_driver);
-}
-device_initcall(mb86s70_gpio_init);
+builtin_platform_driver(mb86s70_gpio_driver);