From: Ezequiel Garcia Date: Thu, 24 Apr 2014 20:54:50 +0000 (-0300) Subject: gpio: mvebu: Remove initcall-based driver initialization X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=dd640039e8de4135fd59d4d963487d1239d6fabe;p=openwrt%2Fstaging%2Fblogic.git 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 Reviewed-by: Javier Martinez Canillas Acked-by: Jason Cooper Signed-off-by: Linus Walleij --- 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);