Skip to content

Commit

Permalink
[PATCH] intel_pmic_gpio: modify EOI handling following change of kern…
Browse files Browse the repository at this point in the history
…el irq subsystem

Latest kernel has many changes in IRQ subsystem and its interfaces, like adding
"irq_eoi" for struct irq_chip, this patch will make it support both the new
and old interface.

Cc: Alek Du <[email protected]>
Signed-off-by: Feng Tang <[email protected]>
Signed-off-by: Matthew Garrett <[email protected]>
  • Loading branch information
ftang1 authored and Matthew Garrett committed Jan 7, 2011
1 parent 2136585 commit 456dc30
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion drivers/platform/x86/intel_pmic_gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,11 @@ static void pmic_irq_handler(unsigned irq, struct irq_desc *desc)
generic_handle_irq(pg->irq_base + gpio);
}
}
desc->chip->eoi(irq);

if (desc->chip->irq_eoi)
desc->chip->irq_eoi(irq_get_irq_data(irq));
else
dev_warn(pg->chip.dev, "missing EOI handler for irq %d\n", irq);
}

static int __devinit platform_pmic_gpio_probe(struct platform_device *pdev)
Expand Down

0 comments on commit 456dc30

Please sign in to comment.