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-msic.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/gpio/gpio-msic.c b/drivers/gpio/gpio-msic.c index 8f70ded..6d0f5ec 100644 --- a/drivers/gpio/gpio-msic.c +++ b/drivers/gpio/gpio-msic.c @@ -325,13 +325,7 @@ static struct platform_driver platform_msic_gpio_driver = { }, .probe = platform_msic_gpio_probe, }; - -static int __init platform_msic_gpio_init(void) -{ - return platform_driver_register(&platform_msic_gpio_driver); -} - -subsys_initcall(platform_msic_gpio_init); +module_platform_driver(platform_msic_gpio_driver); MODULE_AUTHOR("Mathias Nyman <mathias.nyman@xxxxxxxxxxxxxxx>"); MODULE_DESCRIPTION("Intel Medfield MSIC GPIO driver"); -- 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