Patchwork powerpc/512x: initialize clocks before bus probing

login
register
mail settings
Submitter Anatolij Gustschin
Date Jan. 29, 2013, 8:09 a.m.
Message ID <1359446987-6014-1-git-send-email-agust@denx.de>
Download mbox | patch
Permalink /patch/216451/
State Accepted
Commit f29bc0a4e3712ddada0b3bc251105689d6ce4f91
Delegated to: Anatolij Gustschin
Headers show

Comments

Anatolij Gustschin - Jan. 29, 2013, 8:09 a.m.
Early driver probing can fail due to not available clocks
(clk_get() fails) since the clk API init didn't take place yet.
Move clocks init before bus probing.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
---
 arch/powerpc/platforms/512x/mpc512x_shared.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/arch/powerpc/platforms/512x/mpc512x_shared.c b/arch/powerpc/platforms/512x/mpc512x_shared.c
index 37fc7a3..34bad13 100644
--- a/arch/powerpc/platforms/512x/mpc512x_shared.c
+++ b/arch/powerpc/platforms/512x/mpc512x_shared.c
@@ -428,8 +428,8 @@  void __init mpc512x_psc_fifo_init(void)
 
 void __init mpc512x_init(void)
 {
-	mpc512x_declare_of_platform_devices();
 	mpc5121_clk_init();
+	mpc512x_declare_of_platform_devices();
 	mpc512x_restart_init();
 	mpc512x_psc_fifo_init();
 }