diff options
author | Felipe Balbi <balbi@ti.com> | 2012-09-12 06:58:14 -0400 |
---|---|---|
committer | Wolfram Sang <w.sang@pengutronix.de> | 2012-09-12 09:04:03 -0400 |
commit | e3a36b207f76364c281aeecaf14c1b22a7247278 (patch) | |
tree | 0ef963c44ba8cdc5f880748ca9511e2a1154ca3d /drivers/i2c/busses | |
parent | 3b2f8f82dad7d1f79cdc8fc05bd1c94baf109bde (diff) |
i2c: omap: remove unnecessary pm_runtime_suspended check
before starting any messages we call pm_runtime_get_sync()
which will make sure that by the time we program a transfer
and our IRQ handler gets called, we're not suspended
anymore.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Diffstat (limited to 'drivers/i2c/busses')
-rw-r--r-- | drivers/i2c/busses/i2c-omap.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c index 049331cebb7f..6d38a570dc12 100644 --- a/drivers/i2c/busses/i2c-omap.c +++ b/drivers/i2c/busses/i2c-omap.c | |||
@@ -883,9 +883,6 @@ omap_i2c_isr_thread(int this_irq, void *dev_id) | |||
883 | u16 stat; | 883 | u16 stat; |
884 | int err = 0, count = 0; | 884 | int err = 0, count = 0; |
885 | 885 | ||
886 | if (pm_runtime_suspended(dev->dev)) | ||
887 | return IRQ_NONE; | ||
888 | |||
889 | spin_lock_irqsave(&dev->lock, flags); | 886 | spin_lock_irqsave(&dev->lock, flags); |
890 | do { | 887 | do { |
891 | bits = omap_i2c_read_reg(dev, OMAP_I2C_IE_REG); | 888 | bits = omap_i2c_read_reg(dev, OMAP_I2C_IE_REG); |