aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator/act8865-regulator.c
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2014-02-17 14:33:29 +0530
committerMark Brown <broonie@linaro.org>2014-02-18 10:56:51 +0900
commit0079eb53c087245264347a8d7986758784d10823 (patch)
treeb8588a6ded182e0ba002235fd0b9a14e3032a702 /drivers/regulator/act8865-regulator.c
parentregulator: act8865: Use of_get_child_by_name (diff)
downloadlinux-dev-0079eb53c087245264347a8d7986758784d10823.tar.xz
linux-dev-0079eb53c087245264347a8d7986758784d10823.zip
regulator: act8865: 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/act8865-regulator.c')
-rw-r--r--drivers/regulator/act8865-regulator.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/regulator/act8865-regulator.c b/drivers/regulator/act8865-regulator.c
index c9f98b061307..2d2c3b004ab7 100644
--- a/drivers/regulator/act8865-regulator.c
+++ b/drivers/regulator/act8865-regulator.c
@@ -221,6 +221,7 @@ static int act8865_pdata_from_dt(struct device *dev,
matched = of_regulator_match(dev, np,
act8865_matches, ARRAY_SIZE(act8865_matches));
+ of_node_put(np);
if (matched <= 0)
return matched;