diff options
author | David Brownell <dbrownell@users.sourceforge.net> | 2008-04-15 01:31:13 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2008-04-15 01:31:13 -0400 |
commit | 1164ec1ae43770db6ea5450c6cac0761b11d6d1d (patch) | |
tree | cb4b5b2f0f8e1bebd5b54f7143f300f5547bcbdf /drivers/input | |
parent | 9f9439e92a7fb057d31a19636b99e43306192756 (diff) |
Input: gpio_keys - irq handling cleanup
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>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/keyboard/gpio_keys.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/input/keyboard/gpio_keys.c b/drivers/input/keyboard/gpio_keys.c index 6a9ca4bdcb74..a54dc15f9005 100644 --- a/drivers/input/keyboard/gpio_keys.c +++ b/drivers/input/keyboard/gpio_keys.c | |||
@@ -43,10 +43,11 @@ static irqreturn_t gpio_keys_isr(int irq, void *dev_id) | |||
43 | 43 | ||
44 | input_event(input, type, button->code, !!state); | 44 | input_event(input, type, button->code, !!state); |
45 | input_sync(input); | 45 | input_sync(input); |
46 | return IRQ_HANDLED; | ||
46 | } | 47 | } |
47 | } | 48 | } |
48 | 49 | ||
49 | return IRQ_HANDLED; | 50 | return IRQ_NONE; |
50 | } | 51 | } |
51 | 52 | ||
52 | static int __devinit gpio_keys_probe(struct platform_device *pdev) | 53 | static int __devinit gpio_keys_probe(struct platform_device *pdev) |