diff mbox

[RTF,25/26] gpio: tz1090-pdc: use platform based module init

Message ID 1410258591-28248-26-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-tz1090-pdc.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
diff mbox

Patch

diff --git a/drivers/gpio/gpio-tz1090-pdc.c b/drivers/gpio/gpio-tz1090-pdc.c
index f512da2..7eeebe9 100644
--- a/drivers/gpio/gpio-tz1090-pdc.c
+++ b/drivers/gpio/gpio-tz1090-pdc.c
@@ -235,9 +235,4 @@  static struct platform_driver tz1090_pdc_gpio_driver = {
 	},
 	.probe		= tz1090_pdc_gpio_probe,
 };
-
-static int __init tz1090_pdc_gpio_init(void)
-{
-	return platform_driver_register(&tz1090_pdc_gpio_driver);
-}
-subsys_initcall(tz1090_pdc_gpio_init);
+module_platform_driver(tz1090_pdc_gpio_driver);