[ARM] omap: fix clockdomain enable/disable ordering
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Sat, 31 Jan 2009 11:02:37 +0000 (11:02 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 8 Feb 2009 17:50:46 +0000 (17:50 +0000)
commit8263e5b31eae2bbf689ff08a7da334329c9f353b
tree02422180f934dbac1ae16ef63f3825a65636b7b1
parenta7f8c599c570fc0e2396e8fdccaeeeaefc41dac8
[ARM] omap: fix clockdomain enable/disable ordering

Based on a patch from Paul Walmsley <paul@pwsan.com>:

 omap2_clk_enable() should enable a clock's clockdomain before
 attempting to enable its parent clock's clockdomain.  Similarly, in
 the unlikely event that the parent clock enable fails, the clockdomain
 should be disabled.

 linux-omap source commit is 6d6e285e5a7912b1ea68fadac387304c914aaba8.

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