Commit 77eda966 authored by Thomas Gleixner's avatar Thomas Gleixner Committed by Samuel Ortiz

mfd: htc-egpio: Cleanup interrupt handling

Replace the open coded handler call with the prober accessor. Retrieve
the handler data from desc. That avoids a redundant lookup in the
sparse irq case.
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent 73a6839f
...@@ -100,7 +100,7 @@ static struct irq_chip egpio_muxed_chip = { ...@@ -100,7 +100,7 @@ static struct irq_chip egpio_muxed_chip = {
static void egpio_handler(unsigned int irq, struct irq_desc *desc) static void egpio_handler(unsigned int irq, struct irq_desc *desc)
{ {
struct egpio_info *ei = get_irq_data(irq); struct egpio_info *ei = irq_desc_get_handler_data(desc);
int irqpin; int irqpin;
/* Read current pins. */ /* Read current pins. */
...@@ -113,9 +113,7 @@ static void egpio_handler(unsigned int irq, struct irq_desc *desc) ...@@ -113,9 +113,7 @@ static void egpio_handler(unsigned int irq, struct irq_desc *desc)
for_each_set_bit(irqpin, &readval, ei->nirqs) { for_each_set_bit(irqpin, &readval, ei->nirqs) {
/* Run irq handler */ /* Run irq handler */
pr_debug("got IRQ %d\n", irqpin); pr_debug("got IRQ %d\n", irqpin);
irq = ei->irq_start + irqpin; generic_handle_irq(ei->irq_start + irqpin);
desc = irq_to_desc(irq);
desc->handle_irq(irq, desc);
} }
} }
......
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