]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
regulator: core: Reduce rdev locking region when releasing regulator
authorMark Brown <broonie@kernel.org>
Fri, 7 Aug 2015 20:19:26 +0000 (21:19 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 12 Aug 2015 10:01:29 +0000 (11:01 +0100)
commit1768514eebfa888563049fa165449a1c1eba92d8
treee9adcb41b282179be2783258d2cd96b61b600f2e
parent7cd71c3ba166913a0afb8ac0d6bd5d2730fea6df
regulator: core: Reduce rdev locking region when releasing regulator

When we release a regulator we need to remove references to it from the
rdev which means locking the rdev.  Currently we also free resources
associated with the regulator inside the rdev lock but there is no need
to do this, we can reduce the region the lock is held by restricting it
to just actions that affect the rdev.

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