summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-pxa.c
diff options
context:
space:
mode:
authorHaojian Zhuang <haojian.zhuang@linaro.org>2013-01-23 16:25:45 +0800
committerLinus Walleij <linus.walleij@linaro.org>2013-01-25 10:51:12 +0100
commit6c7e660a27da7494c670bfba21cfeba30457656c (patch)
tree2536f32f9b1e646b50f9122275acb33459ff4ba5 /drivers/gpio/gpio-pxa.c
parent89f5df01c6b7f2471267bc55b1ecb196c98e195f (diff)
downloadlinux-6c7e660a27da7494c670bfba21cfeba30457656c.tar.gz
linux-6c7e660a27da7494c670bfba21cfeba30457656c.tar.bz2
linux-6c7e660a27da7494c670bfba21cfeba30457656c.zip
gpio: pxa: set initcall level to module init
gpio & pinctrl driver are used together. The pinctrl driver is already launched before gpio driver in Makefile. So set gpio driver to module init level. Otherwise, the sequence will be inverted. Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-pxa.c')
-rw-r--r--drivers/gpio/gpio-pxa.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/gpio/gpio-pxa.c b/drivers/gpio/gpio-pxa.c
index 8325f580c0f1..9cc108d2b770 100644
--- a/drivers/gpio/gpio-pxa.c
+++ b/drivers/gpio/gpio-pxa.c
@@ -642,12 +642,7 @@ static struct platform_driver pxa_gpio_driver = {
.of_match_table = of_match_ptr(pxa_gpio_dt_ids),
},
};
-
-static int __init pxa_gpio_init(void)
-{
- return platform_driver_register(&pxa_gpio_driver);
-}
-postcore_initcall(pxa_gpio_init);
+module_platform_driver(pxa_gpio_driver);
#ifdef CONFIG_PM
static int pxa_gpio_suspend(void)