]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: twl4030: Cleanup interrupt handling
authorThomas Gleixner <tglx@linutronix.de>
Fri, 25 Mar 2011 11:12:31 +0000 (11:12 +0000)
committerSamuel Ortiz <sameo@linux.intel.com>
Sat, 26 Mar 2011 23:09:48 +0000 (00:09 +0100)
commit4c778c0ff8fdc76d24b7e69a48e17027e2790cae
treeb26bfc2a92c53cf6cf115bf9bf99bc7a51d11983
parent4e391e87e7f2d0663614f60d2f98d98a817e2e04
mfd: twl4030: Cleanup interrupt handling

irq_desc checking in a function which is called with that irq
descriptor locked, is pointless. Equally pointless as the irq desc
check in the interrupt service routine. The driver sets those lines
up, so that cant go away magically.

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

No need to fiddle with irq_desc in the type setting function. The
original value is in irq_data and the core code stores the new setting
when the return value is 0.

This driver needs to be converted to threaded interrupts and buslock.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/twl4030-irq.c