clk: Unprepare the unused prepared slow clocks at late init
authorUlf Hansson <ulf.hansson@linaro.org>
Tue, 12 Mar 2013 19:26:03 +0000 (20:26 +0100)
committerMike Turquette <mturquette@linaro.org>
Tue, 19 Mar 2013 19:58:42 +0000 (12:58 -0700)
commit1c155b3dfe08351f5fc811062648969f1ba7af53
treef1e96de00305a0d3148d8131fd383e96e895d4bf
parent3d6ee287a3e341c88eafd0b4620b12d640b3736b
clk: Unprepare the unused prepared slow clocks at late init

The unused ungated fast clocks are already being disabled from
clk_disable_unused at late init. This patch extend this sequence
to the slow unused prepared clocks to be unprepared.

Unless the optional .is_prepared callback is implemented by a
clk_hw the clk_disable_unused sequence will not unprepare any
unused clocks, since it will fall back to use the software
prepare counter.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
[mturquette@linaro.org: fixed hlist accessors per b67bfe0d]
drivers/clk/clk.c