Input: atmel_mxt_ts - return IRQ_NONE when interrupt handler fails
authorNick Dyer <nick.dyer@itdev.co.uk>
Mon, 19 May 2014 06:00:56 +0000 (23:00 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 19 May 2014 06:27:22 +0000 (23:27 -0700)
Signed-off-by: Nick Dyer <nick.dyer@itdev.co.uk>
Acked-by: Benson Leung <bleung@chromium.org>
Acked-by: Yufeng Shen <miletus@chromium.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/atmel_mxt_ts.c

index 65df362cf3278b69082b488e74a01cc66b398d32..0cff8bb2ad75d1d5048963c29efb1141663e5dd7 100644 (file)
@@ -590,7 +590,7 @@ static irqreturn_t mxt_interrupt(int irq, void *dev_id)
        do {
                if (mxt_read_message(data, &message)) {
                        dev_err(dev, "Failed to read message\n");
-                       goto end;
+                       return IRQ_NONE;
                }
 
                reportid = message.reportid;
@@ -617,7 +617,6 @@ static irqreturn_t mxt_interrupt(int irq, void *dev_id)
                input_sync(data->input_dev);
        }
 
-end:
        return IRQ_HANDLED;
 }