diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2011-12-20 00:50:11 -0500 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2011-12-28 08:26:07 -0500 |
commit | ae68f7af05dbce25889ab10b302fba927dcdb295 (patch) | |
tree | ad32e84db139482901f754c16a210540a9548af3 /arch/arm/mach-mxs/clock.c | |
parent | 42c5d52f2bbf68add2d7a6982753993e0c75a119 (diff) |
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>
Diffstat (limited to 'arch/arm/mach-mxs/clock.c')
-rw-r--r-- | arch/arm/mach-mxs/clock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-mxs/clock.c b/arch/arm/mach-mxs/clock.c index a7093c88e6a6..755eec0b5a89 100644 --- a/arch/arm/mach-mxs/clock.c +++ b/arch/arm/mach-mxs/clock.c | |||
@@ -166,7 +166,7 @@ int clk_set_parent(struct clk *clk, struct clk *parent) | |||
166 | return ret; | 166 | return ret; |
167 | 167 | ||
168 | if (clk->usecount) | 168 | if (clk->usecount) |
169 | clk_enable(parent); | 169 | clk_prepare_enable(parent); |
170 | 170 | ||
171 | mutex_lock(&clocks_mutex); | 171 | mutex_lock(&clocks_mutex); |
172 | ret = clk->set_parent(clk, parent); | 172 | ret = clk->set_parent(clk, parent); |