From: Kamlakant Patel <kamlakant.patel@xxxxxxxxxx> Convert *_initcall based probing of GPIO drivers to regular module_init based probe. Signed-off-by: Kamlakant Patel <kamlakant.patel@xxxxxxxxxx> --- drivers/gpio/gpio-mxs.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/gpio/gpio-mxs.c b/drivers/gpio/gpio-mxs.c index 8ffdd7d..8041445 100644 --- a/drivers/gpio/gpio-mxs.c +++ b/drivers/gpio/gpio-mxs.c @@ -344,12 +344,8 @@ static struct platform_driver mxs_gpio_driver = { .probe = mxs_gpio_probe, .id_table = mxs_gpio_ids, }; +module_platform_driver(mxs_gpio_driver); -static int __init mxs_gpio_init(void) -{ - return platform_driver_register(&mxs_gpio_driver); -} -postcore_initcall(mxs_gpio_init); MODULE_AUTHOR("Freescale Semiconductor, " "Daniel Mack <danielncaiaq.de>, " -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html