diff options
author | Rajeev Kumar <rajeev-dlh.kumar@st.com> | 2011-03-30 22:33:42 -0700 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2011-03-31 00:03:11 -0700 |
commit | 799a2a215ed7f9398a8d528767e64b8e39904105 (patch) | |
tree | 5b863c5a9b14156530f0b8e4cc95dad73bf5ae11 | |
parent | a718d79cc0e0c2f0aa82ba2c54383a18f15b7738 (diff) | |
download | kernel_samsung_smdk4412-799a2a215ed7f9398a8d528767e64b8e39904105.tar.gz kernel_samsung_smdk4412-799a2a215ed7f9398a8d528767e64b8e39904105.tar.bz2 kernel_samsung_smdk4412-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>
-rw-r--r-- | drivers/input/keyboard/spear-keyboard.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/keyboard/spear-keyboard.c b/drivers/input/keyboard/spear-keyboard.c index bee03d64c45..d712dffd215 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) { |