summaryrefslogtreecommitdiffstats
path: root/drivers/input
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@rpsys.net>2005-09-06 15:19:02 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2005-09-07 16:57:53 -0700
commit8cc3c7af42aa826d413e3134628d85f3920457d8 (patch)
tree5dbfbaf12052e9fe316b18e150ef50aafee4218c /drivers/input
parent74b74890bc23b8c6f5b0c0d99f6e1b3d39cb3dae (diff)
[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>
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/touchscreen/corgi_ts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/corgi_ts.c b/drivers/input/touchscreen/corgi_ts.c
index 768ab4a5563..512940ecb35 100644
--- a/drivers/input/touchscreen/corgi_ts.c
+++ b/drivers/input/touchscreen/corgi_ts.c
@@ -105,7 +105,7 @@ static int sync_receive_data_send_cmd(int doRecive, int doSend, unsigned int add
if (wait_time && doSend) {
PMNC_GET(pmnc);
if (!(pmnc & 0x01))
- PMNC_SET(pmnc | 0x01);
+ PMNC_SET(0x01);
/* polling HSync */
SyncHS();