diff options
author | Amit Tomar <Amit.Tomar@freescale.com> | 2015-03-27 08:49:00 -0400 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2015-03-27 11:53:41 -0400 |
commit | 9c836d0c44798227a75c410cf33a76992cf93437 (patch) | |
tree | 5758723bf83b831e2344073ac7f89d670061f1f1 | |
parent | 98e982b3a29829b676b723e42c1184c87e5242d0 (diff) |
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 <amit.tomar@freescale.com>
Acked-by: Danielle Costantino <danielle.costantino@gmail.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
-rw-r--r-- | drivers/i2c/busses/i2c-mpc.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) | |||
96 | i2c->interrupt = readb(i2c->base + MPC_I2C_SR); | 96 | i2c->interrupt = readb(i2c->base + MPC_I2C_SR); |
97 | writeb(0, i2c->base + MPC_I2C_SR); | 97 | writeb(0, i2c->base + MPC_I2C_SR); |
98 | wake_up(&i2c->queue); | 98 | wake_up(&i2c->queue); |
99 | return IRQ_HANDLED; | ||
99 | } | 100 | } |
100 | return IRQ_HANDLED; | 101 | return IRQ_NONE; |
101 | } | 102 | } |
102 | 103 | ||
103 | /* Sometimes 9th clock pulse isn't generated, and slave doesn't release | 104 | /* Sometimes 9th clock pulse isn't generated, and slave doesn't release |