powerpc/512x: initialize clocks before bus probing
authorAnatolij Gustschin <agust@denx.de>
Fri, 25 Jan 2013 16:29:21 +0000 (17:29 +0100)
committerAnatolij Gustschin <agust@denx.de>
Tue, 29 Jan 2013 08:22:53 +0000 (09:22 +0100)
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

index 35f14fd..c344438 100644 (file)
@@ -431,8 +431,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();
 }