Input: spear-keyboard - fix inverted condition in interrupt handler
authorRajeev Kumar <rajeev-dlh.kumar@st.com>
Thu, 31 Mar 2011 05:33:42 +0000 (22:33 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 31 Mar 2011 07:03:11 +0000 (00:03 -0700)
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>
drivers/input/keyboard/spear-keyboard.c

index bee03d64c4536b0c5c857b9dc124d95fdcb98920..d712dffd215712ee9bb419d7df062d066dcf1eac 100644 (file)
@@ -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) {