]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mfd: Make sure to request twl6030 IRQ before using the irq_num
authorAxel Lin <axel.lin@gmail.com>
Thu, 11 Aug 2011 07:21:00 +0000 (15:21 +0800)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 6 Oct 2011 14:43:56 +0000 (16:43 +0200)
commitd264913dcfda8c1a9bf4f44e2e406a4b2a431b02
treeef0d5140fb89563ce7113e8481a0d593b70af41d
parent5cff4367f982c9c986515c25be8cc341df722c67
mfd: Make sure to request twl6030 IRQ before using the irq_num

I was trying to fix the error handling part because in the case of
request_irq failure, it should call kthread_stop instead of free_irq.
But it seems more reasonable to do request_irq before calling kthread_run.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/twl6030-irq.c