From: Richard Zhao Date: Tue, 15 Nov 2011 06:48:01 +0000 (+0800) Subject: ARM: mxc: arch_reset: add clk_prepare/clk_unprepare X-Git-Tag: firefly_0821_release~3680^2~3234^2~19^2~6 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=bcab50102c203927b66431b4467867bb5e104274;p=firefly-linux-kernel-4.4.55.git ARM: mxc: arch_reset: add clk_prepare/clk_unprepare It's for migrating to generic clk framework API. Signed-off-by: Richard Zhao Signed-off-by: Sascha Hauer --- diff --git a/arch/arm/plat-mxc/system.c b/arch/arm/plat-mxc/system.c index 3599bf2cfd4f..f30dcacbbd0a 100644 --- a/arch/arm/plat-mxc/system.c +++ b/arch/arm/plat-mxc/system.c @@ -48,7 +48,7 @@ void mxc_restart(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); }