X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=drivers%2Finput%2Fkeyboard%2Fspear-keyboard.c;h=d712dffd215712ee9bb419d7df062d066dcf1eac;hb=4ae0ff16efeffe7d06726fd3022cdb2f3e9e6892;hp=bee03d64c4536b0c5c857b9dc124d95fdcb98920;hpb=f652f6c5b7cfdf139f4155d78f397e99ae1c4acc;p=karo-tx-linux.git 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) {