summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-mvebu.c
diff options
context:
space:
mode:
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>2014-04-24 17:54:50 -0300
committerLinus Walleij <linus.walleij@linaro.org>2014-05-09 11:08:11 +0200
commitdd640039e8de4135fd59d4d963487d1239d6fabe (patch)
treeeef57b5f604cb4b469d784fecad9629faf4dd07a /drivers/gpio/gpio-mvebu.c
parenta49f2e748de7b163c9e5099edf5f6f9f6fc70dbb (diff)
downloadop-kernel-dev-dd640039e8de4135fd59d4d963487d1239d6fabe.zip
op-kernel-dev-dd640039e8de4135fd59d4d963487d1239d6fabe.tar.gz
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>
Diffstat (limited to 'drivers/gpio/gpio-mvebu.c')
-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 8018d30..418e386 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);
OpenPOWER on IntegriCloud