summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnatolij Gustschin <agust@denx.de>2013-01-25 17:29:21 +0100
committerAnatolij Gustschin <agust@denx.de>2013-01-29 09:22:53 +0100
commitf29bc0a4e3712ddada0b3bc251105689d6ce4f91 (patch)
tree8aec1f23dc641590f4c00855bc6a401ac6795fb0
parentf4ef34537ad303e2230ec543cccc7847f3c47ae8 (diff)
powerpc/512x: initialize clocks before bus probing
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>
-rw-r--r--arch/powerpc/platforms/512x/mpc512x_shared.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/512x/mpc512x_shared.c b/arch/powerpc/platforms/512x/mpc512x_shared.c
index 35f14fda108..c34443849d9 100644
--- a/arch/powerpc/platforms/512x/mpc512x_shared.c
+++ b/arch/powerpc/platforms/512x/mpc512x_shared.c
@@ -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();
}