From: Felipe Balbi Date: Wed, 12 Sep 2012 10:58:14 +0000 (+0530) Subject: i2c: omap: remove unnecessary pm_runtime_suspended check X-Git-Tag: firefly_0821_release~3680^2~1854^2~12 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=e3a36b207f76364c281aeecaf14c1b22a7247278;p=firefly-linux-kernel-4.4.55.git 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 Signed-off-by: Shubhrajyoti D Signed-off-by: Wolfram Sang --- 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) u16 stat; int err = 0, count = 0; - if (pm_runtime_suspended(dev->dev)) - return IRQ_NONE; - spin_lock_irqsave(&dev->lock, flags); do { bits = omap_i2c_read_reg(dev, OMAP_I2C_IE_REG);