Skip to content

Commit

Permalink
Input: gpio_keys - irq handling cleanup
Browse files Browse the repository at this point in the history
Cleanup IRQ handling in gpio_keys:  bail after handling the IRQ, and
report IRQ_NONE if we never handle it.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
  • Loading branch information
David Brownell authored and Dmitry Torokhov committed Apr 15, 2008
1 parent 9f9439e commit 1164ec1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/input/keyboard/gpio_keys.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,11 @@ static irqreturn_t gpio_keys_isr(int irq, void *dev_id)

input_event(input, type, button->code, !!state);
input_sync(input);
return IRQ_HANDLED;
}
}

return IRQ_HANDLED;
return IRQ_NONE;
}

static int __devinit gpio_keys_probe(struct platform_device *pdev)
Expand Down

0 comments on commit 1164ec1

Please sign in to comment.