]> git.baikalelectronics.ru Git - kernel.git/commit
[ARM] omap: fix usecount decrement bug
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Sat, 31 Jan 2009 11:00:17 +0000 (11:00 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 8 Feb 2009 17:50:46 +0000 (17:50 +0000)
commitff9041f04740458797df6cdbaff20d7ae80907f2
tree46ffedd691670056203468f5ebfc32d5bf2a6ad8
parent528c98ede2d687b7384a3f06e3d03f6d2f911426
[ARM] omap: fix usecount decrement bug

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

 If _omap2_clk_enable() fails, the clock's usecount must be decremented
 by one no matter whether the clock has a parent or not.

but reorganised a bit.

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