]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit - drivers/regulator/mc13892-regulator.c
regulator: Fix unbalanced lock/unlock in mc13892_regulator_probe error path
authorAxel Lin <axel.lin@gmail.com>
Thu, 15 Mar 2012 04:49:09 +0000 (12:49 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 26 Mar 2012 17:32:11 +0000 (18:32 +0100)
commit5777d9b34aec841429ddade56403b3f53a821a1d
treee3c6b8dee5cf9f9884964d101f892de1a6fea287
parent09bf14b901f2c1908b6a72fe934457acdd1fa430
regulator: Fix unbalanced lock/unlock in mc13892_regulator_probe error path

We do not hold a lock while registering regulator, thus should not call unlock
if regulator_register fails.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/mc13892-regulator.c