diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/i2c/i2c-core.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/i2c/i2c-core.c b/drivers/i2c/i2c-core.c index 910a62de190d..06b4b9e1a23e 100644 --- a/drivers/i2c/i2c-core.c +++ b/drivers/i2c/i2c-core.c | |||
@@ -226,7 +226,9 @@ i2c_new_device(struct i2c_adapter *adap, struct i2c_board_info const *info) | |||
226 | client->adapter = adap; | 226 | client->adapter = adap; |
227 | 227 | ||
228 | client->dev.platform_data = info->platform_data; | 228 | client->dev.platform_data = info->platform_data; |
229 | client->flags = info->flags; | 229 | device_init_wakeup(&client->dev, info->flags & I2C_CLIENT_WAKE); |
230 | |||
231 | client->flags = info->flags & ~I2C_CLIENT_WAKE; | ||
230 | client->addr = info->addr; | 232 | client->addr = info->addr; |
231 | client->irq = info->irq; | 233 | client->irq = info->irq; |
232 | 234 | ||