]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdf37f8e8621dcd0c787ad828cbe8586d1aa3b87b
tree365f832c427f18afb55c4c5d12e07f118da65d1d
parent0183a70b042db9c097fe861d816cc6320e28650d
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