summaryrefslogtreecommitdiffstats
path: root/drivers/input/mouse/pxa930_trkball.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/input/mouse/pxa930_trkball.c')
-rw-r--r--drivers/input/mouse/pxa930_trkball.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/mouse/pxa930_trkball.c b/drivers/input/mouse/pxa930_trkball.c
index d297accf9a7f..1e827ad0afbe 100644
--- a/drivers/input/mouse/pxa930_trkball.c
+++ b/drivers/input/mouse/pxa930_trkball.c
@@ -83,7 +83,7 @@ static int write_tbcr(struct pxa930_trkball *trkball, int v)
__raw_writel(v, trkball->mmio_base + TBCR);
- while (i--) {
+ while (--i) {
if (__raw_readl(trkball->mmio_base + TBCR) == v)
break;
msleep(1);
OpenPOWER on IntegriCloud