VIDEO: amba clcd: don't disable an already disabled clock
authorRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 17 Aug 2010 21:13:22 +0000 (22:13 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 17 Aug 2010 21:15:09 +0000 (22:15 +0100)
commit99c796df94afca5256860dd4760017f1dbb3480c
tree73347ec30626e2ebdf95f64d1cd195b11baa794e
parent41e2e8fd34fff909a0e40129f6ac4233ecfa67a9
VIDEO: amba clcd: don't disable an already disabled clock

Fix the clock enable/disable tracking in the AMBA CLCD driver so
that the driver doesn't try to disable an already disabled clock,
thereby causing the clock (if shared) to become unbalanced.

This resolves a problem with CLCD on LPC32xx ARM platforms.

Reported-by: Kevin Wells <wellsk40@gmail.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/video/amba-clcd.c
include/linux/amba/clcd.h