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

Commit cd6e125c authored by Linus Torvalds's avatar Linus Torvalds
Browse files

twl4030-irq.c: fix compiler warning due to raw-spinlock conversion



Commit 239007b8 ("genirq: Convert irq_desc.lock to raw_spinlock")
seems to have missed this driver, leaving it to use the normal spin-lock
functions for the irq descriptor lock, which is now a raw lock.

Reported-and-compile-tested-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent df9d1e8a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -568,12 +568,12 @@ static void twl4030_sih_do_edge(struct work_struct *work)

		bytes[byte] &= ~(0x03 << off);

		spin_lock_irq(&d->lock);
		raw_spin_lock_irq(&d->lock);
		if (d->status & IRQ_TYPE_EDGE_RISING)
			bytes[byte] |= BIT(off + 1);
		if (d->status & IRQ_TYPE_EDGE_FALLING)
			bytes[byte] |= BIT(off + 0);
		spin_unlock_irq(&d->lock);
		raw_spin_unlock_irq(&d->lock);

		edge_change &= ~BIT(i);
	}