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>
Mon, 24 Oct 2011 12:09:10 +0000 (14:09 +0200)
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>

No differences found