diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-05-07 10:34:52 (GMT) |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-05-07 12:14:44 (GMT) |
commit | 968c2c1707a3396ccd6e7e6c5ddaf658a6d3bd66 (patch) | |
tree | 5c593bc221011a1b3cdc90ecbb034c656bcf06d7 /arch | |
parent | f55205f4d4a8823a11bb8b37ef2ecbd78fb09463 (diff) | |
download | linux-fsl-qoriq-968c2c1707a3396ccd6e7e6c5ddaf658a6d3bd66.tar.xz |
regulator: Actually free the regulator in devm_regulator_put()
It turns out that (quite surprisingly) devres_destroy() only undoes the
devres mapping, it doesn't destroy the underlying resource, meaning that
anything using devm_regulator_put() would leak. While we wait for the new
devres_release() which does what we want to get merged open code it in
devm_regulator_put().
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@ti.com>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions