Commit c22435a3 authored by Thomas Gleixner's avatar Thomas Gleixner Committed by Samuel Ortiz

mfd: twl6030: Cleanup interrupt handling

irq_desc checking in the interrupt demux routine is totally
pointless. The driver sets those lines up, so that cant go away
magically.

Remove the open coded handler magic and use the proper accessor.

This driver needs to be converted to threaded interrupts and buslock.
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent d740f452
...@@ -140,22 +140,7 @@ static int twl6030_irq_thread(void *data) ...@@ -140,22 +140,7 @@ static int twl6030_irq_thread(void *data)
if (sts.int_sts & 0x1) { if (sts.int_sts & 0x1) {
int module_irq = twl6030_irq_base + int module_irq = twl6030_irq_base +
twl6030_interrupt_mapping[i]; twl6030_interrupt_mapping[i];
struct irq_desc *d = irq_to_desc(module_irq); generic_handle_irq(module_irq);
if (!d) {
pr_err("twl6030: Invalid SIH IRQ: %d\n",
module_irq);
return -EINVAL;
}
/* These can't be masked ... always warn
* if we get any surprises.
*/
if (d->status & IRQ_DISABLED)
note_interrupt(module_irq, d,
IRQ_NONE);
else
d->handle_irq(module_irq, d);
} }
local_irq_enable(); local_irq_enable();
......
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