]> 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>
Wed, 21 Sep 2011 10:47:38 +0000 (12:47 +0200)
commitb4bf2d31a99faab9fc70db055a1ceb75f53baaf9
treed4ec68d87dda82495238f7ecc0c92bbb2fbf79b3
parent3af33e3d4c18ca80bef2e3eb9d84afeca75401e3
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