From: Amit Tomar Date: Fri, 27 Mar 2015 12:49:00 +0000 (+0530) Subject: i2c: mpc: Fix ISR return value X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=9c836d0c44798227a75c410cf33a76992cf93437;p=linux-beck.git i2c: mpc: Fix ISR return value ISR should not return IRQ_HANDLED for not handling anything. This patch fixes the return value of ISR for the same case. Signed-off-by: Amit Singh Tomar Acked-by: Danielle Costantino Signed-off-by: Wolfram Sang --- diff --git a/drivers/i2c/busses/i2c-mpc.c b/drivers/i2c/busses/i2c-mpc.c index dc03a9164772..48ecffecc0ed 100644 --- a/drivers/i2c/busses/i2c-mpc.c +++ b/drivers/i2c/busses/i2c-mpc.c @@ -96,8 +96,9 @@ static irqreturn_t mpc_i2c_isr(int irq, void *dev_id) i2c->interrupt = readb(i2c->base + MPC_I2C_SR); writeb(0, i2c->base + MPC_I2C_SR); wake_up(&i2c->queue); + return IRQ_HANDLED; } - return IRQ_HANDLED; + return IRQ_NONE; } /* Sometimes 9th clock pulse isn't generated, and slave doesn't release