summaryrefslogtreecommitdiff
path: root/drivers/gpio/gpio-vf610.c
diff options
context:
space:
mode:
authorGeliang Tang <geliangtang@gmail.com>2016-11-23 17:47:48 +0300
committerLinus Walleij <linus.walleij@linaro.org>2016-11-24 18:19:02 +0300
commitdf950da188f7209a640f6eb3afda171a5afdf71f (patch)
tree8daa947faaad6406c13f38da4e7fd28b85f74e95 /drivers/gpio/gpio-vf610.c
parent1d2b2ac05ac6ea59b78e1e239180e69ce25cc85a (diff)
downloadlinux-df950da188f7209a640f6eb3afda171a5afdf71f.tar.xz
gpio: vf610: use builtin_platform_driver
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>
Diffstat (limited to 'drivers/gpio/gpio-vf610.c')
-rw-r--r--drivers/gpio/gpio-vf610.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/gpio/gpio-vf610.c b/drivers/gpio/gpio-vf610.c
index 3edb09cb9ee0..521fbe338589 100644
--- a/drivers/gpio/gpio-vf610.c
+++ b/drivers/gpio/gpio-vf610.c
@@ -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);