diff mbox

pinctrl: mxs: register driver at postcore_initcall time

Message ID 1342687270-32600-1-git-send-email-shawn.guo@linaro.org (mailing list archive)
State New, archived
Headers show

Commit Message

Shawn Guo July 19, 2012, 8:41 a.m. UTC
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>
---
Hi Linus,

Not sure if it's late for 3.6.  But if possible, please help send it
for 3.6.  I need this patch to remove mxs board files after v3.6-rc1
comes out.

Regards,
Shawn

 drivers/pinctrl/pinctrl-imx23.c |    2 +-
 drivers/pinctrl/pinctrl-imx28.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Comments

Richard Zhao July 19, 2012, 8:56 a.m. UTC | #1
On Thu, Jul 19, 2012 at 04:41:10PM +0800, Shawn Guo wrote:
> 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>

Other imx pinctrl drivers need such change too.

Richard
> ---
> Hi Linus,
> 
> Not sure if it's late for 3.6.  But if possible, please help send it
> for 3.6.  I need this patch to remove mxs board files after v3.6-rc1
> comes out.
> 
> Regards,
> Shawn
> 
>  drivers/pinctrl/pinctrl-imx23.c |    2 +-
>  drivers/pinctrl/pinctrl-imx28.c |    2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/pinctrl/pinctrl-imx23.c b/drivers/pinctrl/pinctrl-imx23.c
> index 75d3eff..3674d87 100644
> --- a/drivers/pinctrl/pinctrl-imx23.c
> +++ b/drivers/pinctrl/pinctrl-imx23.c
> @@ -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)
>  {
> diff --git a/drivers/pinctrl/pinctrl-imx28.c b/drivers/pinctrl/pinctrl-imx28.c
> index b973026..0f5b212 100644
> --- a/drivers/pinctrl/pinctrl-imx28.c
> +++ b/drivers/pinctrl/pinctrl-imx28.c
> @@ -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)
>  {
> -- 
> 1.7.5.4
> 
> 
> 
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
>
Linus Walleij July 27, 2012, 11 p.m. UTC | #2
On Thu, Jul 19, 2012 at 10:41 AM, Shawn Guo <shawn.guo@linaro.org> wrote:

> 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>

Applied to fixes branch.

Yours,
Linus Walleij
diff mbox

Patch

diff --git a/drivers/pinctrl/pinctrl-imx23.c b/drivers/pinctrl/pinctrl-imx23.c
index 75d3eff..3674d87 100644
--- a/drivers/pinctrl/pinctrl-imx23.c
+++ b/drivers/pinctrl/pinctrl-imx23.c
@@ -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)
 {
diff --git a/drivers/pinctrl/pinctrl-imx28.c b/drivers/pinctrl/pinctrl-imx28.c
index b973026..0f5b212 100644
--- a/drivers/pinctrl/pinctrl-imx28.c
+++ b/drivers/pinctrl/pinctrl-imx28.c
@@ -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)
 {