Message ID | 1410258591-28248-19-git-send-email-kamlakant.patel@linaro.org |
---|---|
State | Not Applicable, archived |
Headers | show |
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");