Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e3a36b20 authored by Felipe Balbi's avatar Felipe Balbi Committed by Wolfram Sang
Browse files

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: default avatarFelipe Balbi <balbi@ti.com>
Signed-off-by: default avatarShubhrajyoti D <shubhrajyoti@ti.com>
Signed-off-by: default avatarWolfram Sang <w.sang@pengutronix.de>
parent 3b2f8f82
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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);