diff options
author | Wolfram Sang <wolfram@the-dreams.de> | 2012-11-14 12:12:29 -0500 |
---|---|---|
committer | Wolfram Sang <w.sang@pengutronix.de> | 2012-11-14 13:52:12 -0500 |
commit | 27e0fbefa5ddebdd681d2be9824302d14494c5ff (patch) | |
tree | 4e3ac356ebbe5bc48c7fdbcca8ab2bea4bcb784c /drivers/i2c/busses | |
parent | ca85e248b65649176e9e1edfbf5e791bc44ee52b (diff) |
i2c: omap: don't save a value only needed for read-clearing
Acked-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Wolfram Sang <wolfram@the-dreams.de>
Diffstat (limited to 'drivers/i2c/busses')
-rw-r--r-- | drivers/i2c/busses/i2c-omap.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c index 482c63d53685..49b12fb00c90 100644 --- a/drivers/i2c/busses/i2c-omap.c +++ b/drivers/i2c/busses/i2c-omap.c | |||
@@ -1291,14 +1291,13 @@ static int omap_i2c_runtime_suspend(struct device *dev) | |||
1291 | { | 1291 | { |
1292 | struct platform_device *pdev = to_platform_device(dev); | 1292 | struct platform_device *pdev = to_platform_device(dev); |
1293 | struct omap_i2c_dev *_dev = platform_get_drvdata(pdev); | 1293 | struct omap_i2c_dev *_dev = platform_get_drvdata(pdev); |
1294 | u16 iv; | ||
1295 | 1294 | ||
1296 | _dev->iestate = omap_i2c_read_reg(_dev, OMAP_I2C_IE_REG); | 1295 | _dev->iestate = omap_i2c_read_reg(_dev, OMAP_I2C_IE_REG); |
1297 | 1296 | ||
1298 | omap_i2c_write_reg(_dev, OMAP_I2C_IE_REG, 0); | 1297 | omap_i2c_write_reg(_dev, OMAP_I2C_IE_REG, 0); |
1299 | 1298 | ||
1300 | if (_dev->rev < OMAP_I2C_OMAP1_REV_2) { | 1299 | if (_dev->rev < OMAP_I2C_OMAP1_REV_2) { |
1301 | iv = omap_i2c_read_reg(_dev, OMAP_I2C_IV_REG); /* Read clears */ | 1300 | omap_i2c_read_reg(_dev, OMAP_I2C_IV_REG); /* Read clears */ |
1302 | } else { | 1301 | } else { |
1303 | omap_i2c_write_reg(_dev, OMAP_I2C_STAT_REG, _dev->iestate); | 1302 | omap_i2c_write_reg(_dev, OMAP_I2C_STAT_REG, _dev->iestate); |
1304 | 1303 | ||