mfd: htc-i2cpld: Cleanup interrupt handling
authorThomas Gleixner <tglx@linutronix.de>
Fri, 25 Mar 2011 11:12:29 +0000 (11:12 +0000)
committerSamuel Ortiz <sameo@linux.intel.com>
Sat, 26 Mar 2011 23:09:46 +0000 (00:09 +0100)
commit9eaee99e5a9cedcc4acb3b5507c0878352222bce
tree365f832c427f18afb55c4c5d12e07f118da65d1d
parent77eda96691f5e39973f2f2667a28e57e852f559d
mfd: htc-i2cpld: Cleanup interrupt handling

Remove the pointless irq_desc check in set_type. This function is
called with that irq descriptor locked. Also remove the write back of
the flow type as the core code does this already when the return value
is 0.

Also store the flow type in the chip data structure, so there is no
need to fiddle in the irq descriptor.

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