summaryrefslogtreecommitdiff
path: root/target/linux/xburst/files-2.6.32
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2010-03-11 00:28:39 +0000
committerLars-Peter Clausen <lars@metafoo.de>2010-03-11 00:28:39 +0000
commitc239c058299de8715d860e77c8f77187492c7c65 (patch)
tree0e40cdf310b011ea222559b9417dab0aef65c02d /target/linux/xburst/files-2.6.32
parent43e69aa56946d6a73082f2c5d7873bc6a23acc75 (diff)
downloadmtk-20170518-c239c058299de8715d860e77c8f77187492c7c65.zip
mtk-20170518-c239c058299de8715d860e77c8f77187492c7c65.tar.gz
mtk-20170518-c239c058299de8715d860e77c8f77187492c7c65.tar.bz2
n516-lpc: Fix irq strom during resume
SVN-Revision: 20127
Diffstat (limited to 'target/linux/xburst/files-2.6.32')
-rw-r--r--target/linux/xburst/files-2.6.32/drivers/i2c/chips/n516-lpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/xburst/files-2.6.32/drivers/i2c/chips/n516-lpc.c b/target/linux/xburst/files-2.6.32/drivers/i2c/chips/n516-lpc.c
index 1be5f95..20357ee 100644
--- a/target/linux/xburst/files-2.6.32/drivers/i2c/chips/n516-lpc.c
+++ b/target/linux/xburst/files-2.6.32/drivers/i2c/chips/n516-lpc.c
@@ -211,7 +211,7 @@ static irqreturn_t n516_lpc_irq_thread(int irq, void *devid)
struct i2c_client *client = chip->i2c_client;
struct i2c_msg msg = {client->addr, client->flags | I2C_M_RD, 1, &raw_msg};
- if (client->dev.power.status != DPM_ON)
+ if (client->dev.power.status >= DPM_OFF)
return IRQ_HANDLED;
ret = i2c_transfer(client->adapter, &msg, 1);