Patchwork [V2,06/14] ARM: mxc: arch_reset: add clk_prepare/clk_unprepare

login
register
mail settings
Submitter Richard Zhao
Date Nov. 11, 2011, 1:10 a.m.
Message ID <1320973829-4388-7-git-send-email-richard.zhao@linaro.org>
Download mbox | patch
Permalink /patch/125053/
State New
Headers show

Comments

Richard Zhao - Nov. 11, 2011, 1:10 a.m.
Signed-off-by: Richard Zhao <richard.zhao@linaro.org>
---
 arch/arm/plat-mxc/system.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/arch/arm/plat-mxc/system.c b/arch/arm/plat-mxc/system.c
index 9dad8dc..a667adc 100644
--- a/arch/arm/plat-mxc/system.c
+++ b/arch/arm/plat-mxc/system.c
@@ -54,7 +54,7 @@  void arch_reset(char mode, const char *cmd)
 
 		clk = clk_get_sys("imx2-wdt.0", NULL);
 		if (!IS_ERR(clk))
-			clk_enable(clk);
+			clk_prepare_enable(clk);
 		wcr_enable = (1 << 2);
 	}