]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: Fix mismatch in twl4030 mutex lock-unlock
authorSanjeev Premi <premi@ti.com>
Mon, 11 Jul 2011 15:20:31 +0000 (20:50 +0530)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 31 Jul 2011 21:28:27 +0000 (23:28 +0200)
commit84457c8dc251e84481e356f83785b33ac23b286e
treeb5d0fffe561eea9ef9b0646804ef0013c533fd69
parentd3f8d95dac213e762dadaf2f1985480465f0330d
mfd: Fix mismatch in twl4030 mutex lock-unlock

A mutex is locked on entry into twl4030_madc_conversion().
Immediate return on some error conditions leaves the
mutex locked.

This patch ensures that mutex is always unlocked before
leaving the function.

Signed-off-by: Sanjeev Premi <premi@ti.com>
Cc: Keerthy <j-keerthy@ti.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/twl4030-madc.c