aboutsummaryrefslogtreecommitdiff
path: root/drivers/input/keyboard
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2018-12-28 17:10:54 -0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2018-12-28 17:10:54 -0800
commit592b15ba7260f8dec8bfc71ef0ea1934801a35aa (patch)
tree51ead1b83e10da0cf6623116f37a15bc142f9d8b /drivers/input/keyboard
parent7db54c89f0b30a101584e09d3729144e6170059d (diff)
parent1e3c336ad8f40f88a8961c434640920fe35cc08b (diff)
Merge branch 'next' into for-linus
Prepare input updates for 4.21 merge window.
Diffstat (limited to 'drivers/input/keyboard')
-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)
while ((readl(keypad->reg_base + SKE_RIS) != 0x00000000) && timeout--)
cpu_relax();
- if (!timeout)
+ if (timeout == -1)
return -EINVAL;
/*