Commit 026cdfe6 authored by Sachin Kamat's avatar Sachin Kamat Committed by Mark Brown

regulator: tps65090: Add missing of_node_put

Add of_node_put to decrement the ref count.
Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 38dbfb59
...@@ -188,6 +188,7 @@ static struct tps65090_platform_data *tps65090_parse_dt_reg_data( ...@@ -188,6 +188,7 @@ static struct tps65090_platform_data *tps65090_parse_dt_reg_data(
ret = of_regulator_match(&pdev->dev, regulators, tps65090_matches, ret = of_regulator_match(&pdev->dev, regulators, tps65090_matches,
ARRAY_SIZE(tps65090_matches)); ARRAY_SIZE(tps65090_matches));
of_node_put(regulators);
if (ret < 0) { if (ret < 0) {
dev_err(&pdev->dev, dev_err(&pdev->dev,
"Error parsing regulator init data: %d\n", ret); "Error parsing regulator init data: %d\n", ret);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment