summaryrefslogtreecommitdiffstats
path: root/drivers/regulator/tps6507x-regulator.c
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2014-02-17 14:33:36 +0530
committerMark Brown <broonie@linaro.org>2014-02-18 11:03:51 +0900
commitaaacb0e9e66f644a0291082263455c6aafab0e9d (patch)
tree86c3de7807a5be964c049a516389de957a80d069 /drivers/regulator/tps6507x-regulator.c
parente3d4edfd98018a5bc0aa01167b7a6dcf92af7918 (diff)
downloadblackbird-op-linux-aaacb0e9e66f644a0291082263455c6aafab0e9d.tar.gz
blackbird-op-linux-aaacb0e9e66f644a0291082263455c6aafab0e9d.zip
regulator: tps6507x: 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/tps6507x-regulator.c')
-rw-r--r--drivers/regulator/tps6507x-regulator.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/regulator/tps6507x-regulator.c b/drivers/regulator/tps6507x-regulator.c
index 5a558dad27e3..e506e7f54253 100644
--- a/drivers/regulator/tps6507x-regulator.c
+++ b/drivers/regulator/tps6507x-regulator.c
@@ -395,6 +395,7 @@ static struct tps6507x_board *tps6507x_parse_dt_reg_data(
matches = tps6507x_matches;
ret = of_regulator_match(&pdev->dev, regulators, matches, count);
+ of_node_put(regulators);
if (ret < 0) {
dev_err(&pdev->dev, "Error parsing regulator init data: %d\n",
ret);
OpenPOWER on IntegriCloud