diff mbox

[RTF,05/26] gpio: mxc: use platform based module init

Message ID 1410258591-28248-6-git-send-email-kamlakant.patel@linaro.org
State Not Applicable, archived
Headers show

Commit Message

kamlakant.patel@linaro.org Sept. 9, 2014, 10:29 a.m. UTC
From: Kamlakant Patel <kamlakant.patel@linaro.org>

Convert *_initcall based probing of GPIO drivers to regular
module_init based probe.

Signed-off-by: Kamlakant Patel <kamlakant.patel@linaro.org>
---
 drivers/gpio/gpio-mxc.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
diff mbox

Patch

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>, "