From: David Brownell <[EMAIL PROTECTED]>

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 <[EMAIL PROTECTED]>
Cc: Phil Blundell <[EMAIL PROTECTED]>
Cc: Dmitry Torokhov <[EMAIL PROTECTED]>
---
No functional changes since the version sent 27-Dec-2007.
MAINTAINERS says "[EMAIL PROTECTED]" but the only archives
I could find seems to say "@atrey.karlin.mff.cuni.cz"...

 drivers/input/keyboard/gpio_keys.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

--- g26.orig/drivers/input/keyboard/gpio_keys.c 2008-04-10 19:39:15.000000000 
-0700
+++ g26/drivers/input/keyboard/gpio_keys.c      2008-04-11 00:30:45.000000000 
-0700
@@ -43,10 +43,11 @@ static irqreturn_t gpio_keys_isr(int irq
 
                        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)

Reply via email to