aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator/max8660.c
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2014-02-17 14:33:34 +0530
committerMark Brown <broonie@linaro.org>2014-02-18 11:02:08 +0900
commitcde248f92fea058bdc8be33f39c04e0651b5036e (patch)
tree9950ca7b93f8459d6e4f6314af572ea7e119f226 /drivers/regulator/max8660.c
parentregulator: max8660: Use of_get_child_by_name (diff)
downloadlinux-dev-cde248f92fea058bdc8be33f39c04e0651b5036e.tar.xz
linux-dev-cde248f92fea058bdc8be33f39c04e0651b5036e.zip
regulator: max8660: Add missing of_node_put
Add of_node_put to decrement the ref count. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/regulator/max8660.c')
-rw-r--r--drivers/regulator/max8660.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/regulator/max8660.c b/drivers/regulator/max8660.c
index 70351abbd1e9..61ecd0892637 100644
--- a/drivers/regulator/max8660.c
+++ b/drivers/regulator/max8660.c
@@ -340,6 +340,7 @@ static int max8660_pdata_from_dt(struct device *dev,
rmatch[i].name = max8660_reg[i].name;
matched = of_regulator_match(dev, np, rmatch, ARRAY_SIZE(rmatch));
+ of_node_put(np);
if (matched <= 0)
return matched;