platform-drivers: x86: pmic: Use request_irq instead of chained handler
authorThomas Gleixner <tglx@linutronix.de>
Mon, 7 Feb 2011 20:41:30 +0000 (21:41 +0100)
committerMatthew Garrett <mjg@redhat.com>
Mon, 21 Feb 2011 22:06:11 +0000 (17:06 -0500)
commit98401ae43413ac374c0eb8d6018b13495e08f948
treeb389790651fb384b1fbef96789c3b0eb179ee99c
parentd4b7de612d193e1c8fdeee9902e5a582e746dfe9
platform-drivers: x86: pmic: Use request_irq instead of chained handler

There is no need to install a chained handler for this hardware. This
is a plain x86 IOAPIC interrupt which is handled by the core code
perfectly fine. There is nothing special about demultiplexing these
gpio interrupts which justifies a custom hack. Replace it by a plain
old interrupt handler installed with request_irq. That makes the code
agnostic about the underlying primary interrupt hardware. The overhead
for this is minimal, but it gives us the advantage of accounting,
balancing and to detect interrupt storms. gpio interrupts are not
really that performance critical.

Patch fixups from akpm

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/platform/x86/intel_pmic_gpio.c