[ARM] omap: fix clock reparenting in omap2_clk_set_parent()
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Thu, 19 Feb 2009 13:25:16 +0000 (13:25 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 19 Feb 2009 13:25:16 +0000 (13:25 +0000)
commit41f3103fcfffff096c34f5267d7c9a26b44d89d3
tree011bbbc5d7b5e25f2c49ee3de825086b167bc653
parent22eb36f49e24e922ca6594a99157a3fcb92d3824
[ARM] omap: fix clock reparenting in omap2_clk_set_parent()

When changing the parent of a clock, it is necessary to keep the
clock use counts balanced otherwise things the parent state will
get corrupted.  Since we already disable and re-enable the clock,
we might as well use the recursive versions instead.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-omap2/clock.c