gpio: mvebu: Remove initcall-based driver initialization
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>
Thu, 24 Apr 2014 20:54:50 +0000 (17:54 -0300)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 9 May 2014 09:08:11 +0000 (11:08 +0200)
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>
drivers/gpio/gpio-mvebu.c

index 8018d308226abbf540904867ed24daa6b7da1383..418e386503632f360701b9e10696b48aba529fe1 100644 (file)
@@ -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);