Commit 1164ec1a authored by David Brownell's avatar David Brownell Committed by Dmitry Torokhov

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: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent 9f9439e9
...@@ -43,10 +43,11 @@ static irqreturn_t gpio_keys_isr(int irq, void *dev_id) ...@@ -43,10 +43,11 @@ static irqreturn_t gpio_keys_isr(int irq, void *dev_id)
input_event(input, type, button->code, !!state); input_event(input, type, button->code, !!state);
input_sync(input); input_sync(input);
return IRQ_HANDLED;
} }
} }
return IRQ_HANDLED; return IRQ_NONE;
} }
static int __devinit gpio_keys_probe(struct platform_device *pdev) static int __devinit gpio_keys_probe(struct platform_device *pdev)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment