Skip to content
Commit 1768514e authored by Mark Brown's avatar Mark Brown
Browse files

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: default avatarMark Brown <broonie@kernel.org>
parent 7cd71c3b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment