]> git.karo-electronics.de Git - linux-beck.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)
commita7f8c599c570fc0e2396e8fdccaeeeaefc41dac8
tree46ffedd691670056203468f5ebfc32d5bf2a6ad8
parentbe5f34b77355b9b1720a88390e51441ef578720b
[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