pinctrl: mxs: register driver at postcore_initcall time

It's not so usual, but there are still some cases which require pinctrl
driver function at arch_initcall time.  So register imx23 and imx28
pinctrl driver at postcore_initcall time.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Reviewed-by: Richard Zhao <richard.zhao@freescale.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
Shawn Guo 2012-07-19 16:41:10 +08:00 committed by Linus Walleij
parent 0d7614f09c
commit c43ba80082
2 changed files with 2 additions and 2 deletions

View file

@ -292,7 +292,7 @@ static int __init imx23_pinctrl_init(void)
{ {
return platform_driver_register(&imx23_pinctrl_driver); return platform_driver_register(&imx23_pinctrl_driver);
} }
arch_initcall(imx23_pinctrl_init); postcore_initcall(imx23_pinctrl_init);
static void __exit imx23_pinctrl_exit(void) static void __exit imx23_pinctrl_exit(void)
{ {

View file

@ -408,7 +408,7 @@ static int __init imx28_pinctrl_init(void)
{ {
return platform_driver_register(&imx28_pinctrl_driver); return platform_driver_register(&imx28_pinctrl_driver);
} }
arch_initcall(imx28_pinctrl_init); postcore_initcall(imx28_pinctrl_init);
static void __exit imx28_pinctrl_exit(void) static void __exit imx28_pinctrl_exit(void)
{ {