diff options
author | Anatolij Gustschin <agust@denx.de> | 2013-01-25 11:29:21 -0500 |
---|---|---|
committer | Anatolij Gustschin <agust@denx.de> | 2013-01-29 03:22:53 -0500 |
commit | f29bc0a4e3712ddada0b3bc251105689d6ce4f91 (patch) | |
tree | 8aec1f23dc641590f4c00855bc6a401ac6795fb0 /arch/powerpc | |
parent | f4ef34537ad303e2230ec543cccc7847f3c47ae8 (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>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/platforms/512x/mpc512x_shared.c | 2 |
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 35f14fda108a..c34443849d9a 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) | |||
431 | 431 | ||
432 | void __init mpc512x_init(void) | 432 | void __init mpc512x_init(void) |
433 | { | 433 | { |
434 | mpc512x_declare_of_platform_devices(); | ||
435 | mpc5121_clk_init(); | 434 | mpc5121_clk_init(); |
435 | mpc512x_declare_of_platform_devices(); | ||
436 | mpc512x_restart_init(); | 436 | mpc512x_restart_init(); |
437 | mpc512x_psc_fifo_init(); | 437 | mpc512x_psc_fifo_init(); |
438 | } | 438 | } |