Skip to content

Commit

Permalink
pinctrl: mxs: register driver at postcore_initcall time
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Shawn Guo authored and Linus Walleij committed Aug 4, 2012
1 parent 0d7614f commit c43ba80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/pinctrl/pinctrl-imx23.c
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ static int __init imx23_pinctrl_init(void)
{
return platform_driver_register(&imx23_pinctrl_driver);
}
arch_initcall(imx23_pinctrl_init);
postcore_initcall(imx23_pinctrl_init);

static void __exit imx23_pinctrl_exit(void)
{
Expand Down
2 changes: 1 addition & 1 deletion drivers/pinctrl/pinctrl-imx28.c
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ static int __init imx28_pinctrl_init(void)
{
return platform_driver_register(&imx28_pinctrl_driver);
}
arch_initcall(imx28_pinctrl_init);
postcore_initcall(imx28_pinctrl_init);

static void __exit imx28_pinctrl_exit(void)
{
Expand Down

0 comments on commit c43ba80

Please sign in to comment.