Skip to content

Commit

Permalink
powerpc/512x: initialize clocks before bus probing
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Anatolij Gustschin committed Jan 29, 2013
1 parent f4ef345 commit f29bc0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/platforms/512x/mpc512x_shared.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

0 comments on commit f29bc0a

Please sign in to comment.