diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2013-04-24 15:41:20 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-04-24 15:42:24 -0400 |
commit | cf3fa17c2003dd9d1534e7da2d462132e1b70811 (patch) | |
tree | a43a8edd24d45cb835ac8f892770d2643cd5266f | |
parent | 60d509fa6a9c4653a86ad830e4c4b30360b23f0e (diff) |
Revert "gpio: pxa: set initcall level to module init"
This reverts commit 6c7e660a27da7494c670bfba21cfeba30457656c.
The commit causes breakage on several older PXA machines.
Reported-by: Mike Dunn <mikedunn@newsguy.com>
Acked-by: Haojian Zhuang <haojian.zhuang@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r-- | drivers/gpio/gpio-pxa.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-pxa.c b/drivers/gpio/gpio-pxa.c index 9cc108d2b770..8325f580c0f1 100644 --- a/drivers/gpio/gpio-pxa.c +++ b/drivers/gpio/gpio-pxa.c | |||
@@ -642,7 +642,12 @@ static struct platform_driver pxa_gpio_driver = { | |||
642 | .of_match_table = of_match_ptr(pxa_gpio_dt_ids), | 642 | .of_match_table = of_match_ptr(pxa_gpio_dt_ids), |
643 | }, | 643 | }, |
644 | }; | 644 | }; |
645 | module_platform_driver(pxa_gpio_driver); | 645 | |
646 | static int __init pxa_gpio_init(void) | ||
647 | { | ||
648 | return platform_driver_register(&pxa_gpio_driver); | ||
649 | } | ||
650 | postcore_initcall(pxa_gpio_init); | ||
646 | 651 | ||
647 | #ifdef CONFIG_PM | 652 | #ifdef CONFIG_PM |
648 | static int pxa_gpio_suspend(void) | 653 | static int pxa_gpio_suspend(void) |