]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitabe7de28bf2bcd3489126248b7892d58100bec04
tree73347ec30626e2ebdf95f64d1cd195b11baa794e
parent6934b17ebdbe714b87801af8e231baace37f2fff
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