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-rc5t583.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/drivers/gpio/gpio-rc5t583.c b/drivers/gpio/gpio-rc5t583.c index 769233d..1074f99 100644 --- a/drivers/gpio/gpio-rc5t583.c +++ b/drivers/gpio/gpio-rc5t583.c @@ -160,18 +160,7 @@ static struct platform_driver rc5t583_gpio_driver = { .probe = rc5t583_gpio_probe, .remove = rc5t583_gpio_remove, }; - -static int __init rc5t583_gpio_init(void) -{ - return platform_driver_register(&rc5t583_gpio_driver); -} -subsys_initcall(rc5t583_gpio_init); - -static void __exit rc5t583_gpio_exit(void) -{ - platform_driver_unregister(&rc5t583_gpio_driver); -} -module_exit(rc5t583_gpio_exit); +module_platform_driver(rc5t583_gpio_driver); MODULE_AUTHOR("Laxman Dewangan <ldewangan@xxxxxxxxxx>"); MODULE_DESCRIPTION("GPIO interface for RC5T583"); -- 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