summaryrefslogtreecommitdiffstats
path: root/drivers/input/keyboard/spear-keyboard.c
diff options
context:
space:
mode:
authorRajeev Kumar <rajeev-dlh.kumar@st.com>2011-03-31 07:33:42 +0200
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2011-03-31 09:03:11 +0200
commit799a2a215ed7f9398a8d528767e64b8e39904105 (patch)
tree5b863c5a9b14156530f0b8e4cc95dad73bf5ae11 /drivers/input/keyboard/spear-keyboard.c
parentInput: uinput - allow for 0/0 min/max on absolute axes. (diff)
downloadlinux-799a2a215ed7f9398a8d528767e64b8e39904105.tar.xz
linux-799a2a215ed7f9398a8d528767e64b8e39904105.zip
Input: spear-keyboard - fix inverted condition in interrupt handler
We should return IRQ_NONE from interrupt handler in case keyboard does not report DATA_AVAIL condition. Signed-off-by: Rajeev Kumar <rajeev-dlh.kumar@st.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/keyboard/spear-keyboard.c')
-rw-r--r--drivers/input/keyboard/spear-keyboard.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/keyboard/spear-keyboard.c b/drivers/input/keyboard/spear-keyboard.c
index bee03d64c453..d712dffd2157 100644
--- a/drivers/input/keyboard/spear-keyboard.c
+++ b/drivers/input/keyboard/spear-keyboard.c
@@ -69,7 +69,7 @@ static irqreturn_t spear_kbd_interrupt(int irq, void *dev_id)
u8 sts, val;
sts = readb(kbd->io_base + STATUS_REG);
- if (sts & DATA_AVAIL)
+ if (!(sts & DATA_AVAIL))
return IRQ_NONE;
if (kbd->last_key != KEY_RESERVED) {