summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>2014-04-25 00:54:50 +0400
committerLinus Walleij <linus.walleij@linaro.org>2014-05-09 13:08:11 +0400
commitdd640039e8de4135fd59d4d963487d1239d6fabe (patch)
treeeef57b5f604cb4b469d784fecad9629faf4dd07a
parenta49f2e748de7b163c9e5099edf5f6f9f6fc70dbb (diff)
downloadlinux-dd640039e8de4135fd59d4d963487d1239d6fabe.tar.xz
gpio: mvebu: Remove initcall-based driver initialization
There's no reason to use an initcall to initialize this driver, and regular module_platform_driver() can be used instead. Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com> Reviewed-by: Javier Martinez Canillas <javier@dowhile0.org> Acked-by: Jason Cooper <jason@lakedaemon.net> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r--drivers/gpio/gpio-mvebu.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/gpio/gpio-mvebu.c b/drivers/gpio/gpio-mvebu.c
index 8018d308226a..418e38650363 100644
--- a/drivers/gpio/gpio-mvebu.c
+++ b/drivers/gpio/gpio-mvebu.c
@@ -736,9 +736,4 @@ static struct platform_driver mvebu_gpio_driver = {
},
.probe = mvebu_gpio_probe,
};
-
-static int __init mvebu_gpio_init(void)
-{
- return platform_driver_register(&mvebu_gpio_driver);
-}
-postcore_initcall(mvebu_gpio_init);
+module_platform_driver(mvebu_gpio_driver);