[PATCH] Corgi touchscreen: Fix a pmu bug
Corgi Touchscreen bugfix. If the PMU isn't running, the register needs to
be set to a sane value rather than reusing some random value.
Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
diff --git a/drivers/input/touchscreen/corgi_ts.c b/drivers/input/touchscreen/corgi_ts.c
index 768ab4a..512940e 100644
--- a/drivers/input/touchscreen/corgi_ts.c
+++ b/drivers/input/touchscreen/corgi_ts.c
@@ -105,7 +105,7 @@
if (wait_time && doSend) {
PMNC_GET(pmnc);
if (!(pmnc & 0x01))
- PMNC_SET(pmnc | 0x01);
+ PMNC_SET(0x01);
/* polling HSync */
SyncHS();