ARM: mxc: arch_reset: add clk_prepare/clk_unprepare
authorRichard Zhao <richard.zhao@linaro.org>
Tue, 15 Nov 2011 06:48:01 +0000 (14:48 +0800)
committerSascha Hauer <s.hauer@pengutronix.de>
Wed, 1 Feb 2012 13:28:00 +0000 (14:28 +0100)
It's for migrating to generic clk framework API.

Signed-off-by: Richard Zhao <richard.zhao@linaro.org>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
arch/arm/plat-mxc/system.c

index 3599bf2..f30dcac 100644 (file)
@@ -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);
        }