summaryrefslogtreecommitdiff
path: root/drivers/regulator/core.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2012-05-07 13:14:30 (GMT)
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-06-03 12:20:12 (GMT)
commit361ff5017446605dca8b0a084c826e3d2a0d0a99 (patch)
tree22a0112fa7ce6a1091ff607d1acbdbea2c7b9c50 /drivers/regulator/core.c
parent8b7485ef623b9171e5a58c67eef5912a27db5822 (diff)
downloadlinux-fsl-qoriq-361ff5017446605dca8b0a084c826e3d2a0d0a99.tar.xz
regulator: Use newly added devres_release() rather than open coding
devres_release() will call the destructor for the resource as well as freeing the devres data. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Liam Girdwood <lrg@ti.com>
Diffstat (limited to 'drivers/regulator/core.c')
-rw-r--r--drivers/regulator/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c
index 58a4749..7965e86 100644
--- a/drivers/regulator/core.c
+++ b/drivers/regulator/core.c
@@ -1459,7 +1459,7 @@ void devm_regulator_put(struct regulator *regulator)
{
int rc;
- rc = devres_destroy(regulator->dev, devm_regulator_release,
+ rc = devres_release(regulator->dev, devm_regulator_release,
devm_regulator_match, regulator);
if (rc == 0)
regulator_put(regulator);