regulator: core: Move more deallocation into class unregister
authorMark Brown <broonie@kernel.org>
Fri, 7 Aug 2015 19:01:32 +0000 (20:01 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 12 Aug 2015 10:01:30 +0000 (11:01 +0100)
commit29f5f4860a8ef9407736594ec43b4fa4152ac7fa
tree42cce17d27f2cc5fdc696cd05a68f6b2421198f0
parent1768514eebfa888563049fa165449a1c1eba92d8
regulator: core: Move more deallocation into class unregister

We really ought to be using the class dvice lifetime management features
more than we are rather than open coding them so take a step towards that
by moving some of the simplest deallocations to the dev_release() function.

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