Skip to content

Commit

Permalink
twl4030-irq.c: fix compiler warning due to raw-spinlock conversion
Browse files Browse the repository at this point in the history
Commit 239007b ("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: Stephen Rothwell <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
torvalds committed Jan 1, 2010
1 parent df9d1e8 commit cd6e125
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/mfd/twl4030-irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit cd6e125

Please sign in to comment.