ARM: mxs: convert platform code to clk_prepare/clk_unprepare
The patch converts mxs platform code to clk_prepare/clk_unprepare by using helper functions clk_prepare_enable/clk_disable_unprepare. Signed-off-by: Richard Zhao <richard.zhao@linaro.org> Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
This commit is contained in:
@@ -245,7 +245,7 @@ static int __init mxs_clocksource_init(struct clk *timer_clk)
|
||||
|
||||
void __init mxs_timer_init(struct clk *timer_clk, int irq)
|
||||
{
|
||||
clk_enable(timer_clk);
|
||||
clk_prepare_enable(timer_clk);
|
||||
|
||||
/*
|
||||
* Initialize timers to a known state
|
||||
|
Reference in New Issue
Block a user