]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: core: Drop regulator_list_mutex when we're done with it on remove
authorMark Brown <broonie@kernel.org>
Fri, 7 Aug 2015 12:00:35 +0000 (13:00 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 7 Aug 2015 12:03:20 +0000 (13:03 +0100)
commit5c624dcb1a1a283b17f4b56666dc69e88a8f605c
tree6cec7bd12d0fe054853a584e009abac1056c760a
parent01c23fbe0195b5c53607e7e87cc03a51c88b52a3
regulator: core: Drop regulator_list_mutex when we're done with it on remove

When removing a regulator we hold regulator_list_mutex in order to
ensure the regualtor doesn't become removed again.  However we only need
to protect the list until we remove the regulator from the list so move
the unlock earlier to reduce the locked region.

Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/core.c