aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/input/keyboard/nomadik-ske-keypad.c')
-rw-r--r--drivers/input/keyboard/nomadik-ske-keypad.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/keyboard/nomadik-ske-keypad.c b/drivers/input/keyboard/nomadik-ske-keypad.c
index 8567ee47761e..ae3b04557074 100644
--- a/drivers/input/keyboard/nomadik-ske-keypad.c
+++ b/drivers/input/keyboard/nomadik-ske-keypad.c
@@ -100,7 +100,7 @@ static int __init ske_keypad_chip_init(struct ske_keypad *keypad)
100 while ((readl(keypad->reg_base + SKE_RIS) != 0x00000000) && timeout--) 100 while ((readl(keypad->reg_base + SKE_RIS) != 0x00000000) && timeout--)
101 cpu_relax(); 101 cpu_relax();
102 102
103 if (!timeout) 103 if (timeout == -1)
104 return -EINVAL; 104 return -EINVAL;
105 105
106 /* 106 /*