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-zynq.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/drivers/gpio/gpio-zynq.c b/drivers/gpio/gpio-zynq.c index 31ad5df..a112600 100644 --- a/drivers/gpio/gpio-zynq.c +++ b/drivers/gpio/gpio-zynq.c @@ -695,17 +695,7 @@ static struct platform_driver zynq_gpio_driver = { .probe = zynq_gpio_probe, .remove = zynq_gpio_remove, }; - -/** - * zynq_gpio_init - Initial driver registration call - * - * Return: value from platform_driver_register - */ -static int __init zynq_gpio_init(void) -{ - return platform_driver_register(&zynq_gpio_driver); -} -postcore_initcall(zynq_gpio_init); +module_platform_driver(zynq_gpio_driver); MODULE_AUTHOR("Xilinx Inc."); MODULE_DESCRIPTION("Zynq 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