[xburst] n516-lpc: Fix irq strom during resume
authorLars-Peter Clausen <lars@metafoo.de>
Thu, 11 Mar 2010 00:28:39 +0000 (00:28 +0000)
committerLars-Peter Clausen <lars@metafoo.de>
Thu, 11 Mar 2010 00:28:39 +0000 (00:28 +0000)
SVN-Revision: 20127

target/linux/xburst/files-2.6.32/drivers/i2c/chips/n516-lpc.c

index 1be5f957243ecfbde27da338f9e53b058b6a64ac..20357ee2eb6bb845619f638d9b662f735bf7611f 100644 (file)
@@ -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);