]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drivers: sh: resume enabled clocks fix
authorMagnus Damm <damm@opensource.se>
Mon, 13 Jun 2011 04:42:15 +0000 (04:42 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Tue, 14 Jun 2011 06:15:25 +0000 (15:15 +0900)
commit583af252ab07cd1e8721878463da5b7016c18fdc
tree2203e7388bf7402264e4da8bee1e53ab8e24221f
parentdcee0bb713d0ba0d32c5ce6fe0c5aa22e6fc274a
drivers: sh: resume enabled clocks fix

Extend the SH / SH-Mobile ARM clock framework to only
resume clocks that have been enabled.

Without this fix divide-by-zero is triggering on sh7372
FSIDIV during system wide resume of Suspend-to-RAM.

Signed-off-by: Magnus Damm <damm@opensource.se>
Reviewed-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/sh/clk/core.c