Commit 6078e6c7 authored by Kevin Hilman's avatar Kevin Hilman Committed by Thomas Gleixner

MFD: twl4030: convert irq_desc lock to atomic spinlock

Signed-off-by: default avatarKevin Hilman <khilman@deeprootsystems.com>
LKML-Reference: <878wh5friu.fsf@deeprootsystems.com>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 0e414589
...@@ -458,12 +458,12 @@ static void twl4030_sih_do_edge(struct work_struct *work) ...@@ -458,12 +458,12 @@ static void twl4030_sih_do_edge(struct work_struct *work)
bytes[byte] &= ~(0x03 << off); bytes[byte] &= ~(0x03 << off);
spin_lock_irq(&d->lock); atomic_spin_lock_irq(&d->lock);
if (d->status & IRQ_TYPE_EDGE_RISING) if (d->status & IRQ_TYPE_EDGE_RISING)
bytes[byte] |= BIT(off + 1); bytes[byte] |= BIT(off + 1);
if (d->status & IRQ_TYPE_EDGE_FALLING) if (d->status & IRQ_TYPE_EDGE_FALLING)
bytes[byte] |= BIT(off + 0); bytes[byte] |= BIT(off + 0);
spin_unlock_irq(&d->lock); atomic_spin_unlock_irq(&d->lock);
edge_change &= ~BIT(i); edge_change &= ~BIT(i);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment