Message ID | 1410258591-28248-6-git-send-email-kamlakant.patel@linaro.org |
---|---|
State | Not Applicable, archived |
Headers | show |
diff --git a/drivers/gpio/gpio-mxc.c b/drivers/gpio/gpio-mxc.c index f4e54a9..750f0f6 100644 --- a/drivers/gpio/gpio-mxc.c +++ b/drivers/gpio/gpio-mxc.c @@ -502,12 +502,7 @@ static struct platform_driver mxc_gpio_driver = { .probe = mxc_gpio_probe, .id_table = mxc_gpio_devtype, }; - -static int __init gpio_mxc_init(void) -{ - return platform_driver_register(&mxc_gpio_driver); -} -postcore_initcall(gpio_mxc_init); +module_platform_driver(mxc_gpio_driver); MODULE_AUTHOR("Freescale Semiconductor, " "Daniel Mack <danielncaiaq.de>, "