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-em.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/drivers/gpio/gpio-em.c b/drivers/gpio/gpio-em.c index fe49ec3..c8df9b4 100644 --- a/drivers/gpio/gpio-em.c +++ b/drivers/gpio/gpio-em.c @@ -431,18 +431,7 @@ static struct platform_driver em_gio_device_driver = { .owner = THIS_MODULE, } }; - -static int __init em_gio_init(void) -{ - return platform_driver_register(&em_gio_device_driver); -} -postcore_initcall(em_gio_init); - -static void __exit em_gio_exit(void) -{ - platform_driver_unregister(&em_gio_device_driver); -} -module_exit(em_gio_exit); +module_platform_driver(em_gio_device_driver); MODULE_AUTHOR("Magnus Damm"); MODULE_DESCRIPTION("Renesas Emma Mobile GIO 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