diff mbox

[RTF,22/26] gpio: msic: use platform based module init

Message ID 1410258591-28248-23-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-msic.c | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)
diff mbox

Patch

diff --git a/drivers/gpio/gpio-msic.c b/drivers/gpio/gpio-msic.c
index 8f70ded..6d0f5ec 100644
--- a/drivers/gpio/gpio-msic.c
+++ b/drivers/gpio/gpio-msic.c
@@ -325,13 +325,7 @@  static struct platform_driver platform_msic_gpio_driver = {
 	},
 	.probe		= platform_msic_gpio_probe,
 };
-
-static int __init platform_msic_gpio_init(void)
-{
-	return platform_driver_register(&platform_msic_gpio_driver);
-}
-
-subsys_initcall(platform_msic_gpio_init);
+module_platform_driver(platform_msic_gpio_driver);
 
 MODULE_AUTHOR("Mathias Nyman <mathias.nyman@linux.intel.com>");
 MODULE_DESCRIPTION("Intel Medfield MSIC GPIO driver");