[RTF,04/26] gpio: msm-v1: use platform based module init

Message ID 1410258591-28248-5-git-send-email-kamlakant.patel@linaro.org
State New
Headers show

Commit Message

kamlakant.patel@linaro.org Sept. 9, 2014, 10:29 a.m.
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-msm-v1.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

Patch

diff --git a/drivers/gpio/gpio-msm-v1.c b/drivers/gpio/gpio-msm-v1.c
index 73b7396..bec524e 100644
--- a/drivers/gpio/gpio-msm-v1.c
+++ b/drivers/gpio/gpio-msm-v1.c
@@ -706,10 +706,6 @@  static struct platform_driver gpio_msm_v1_driver = {
 	.probe = gpio_msm_v1_probe,
 	.id_table = gpio_msm_v1_device_ids,
 };
+module_platform_driver(gpio_msm_v1_driver);
 
-static int __init gpio_msm_v1_init(void)
-{
-	return platform_driver_register(&gpio_msm_v1_driver);
-}
-postcore_initcall(gpio_msm_v1_init);
 MODULE_LICENSE("GPL v2");