From: Richard Purdie Date: Tue, 6 Sep 2005 22:19:02 +0000 (-0700) Subject: [PATCH] Corgi touchscreen: Fix a pmu bug X-Git-Tag: v2.6.16.28-rc1~4359 X-Git-Url: https://git.kernelconcepts.de/?a=commitdiff_plain;h=8cc3c7af42aa826d413e3134628d85f3920457d8;p=karo-tx-linux.git [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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/input/touchscreen/corgi_ts.c b/drivers/input/touchscreen/corgi_ts.c index 768ab4a55630..512940ecb357 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();