ARM: mxc: arch_reset: add clk_prepare/clk_unprepare
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>
This commit is contained in:
parent
8f33eed084
commit
bcab50102c
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue