Эх сурвалжийг харах

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>
Sachin Kamat 11 жил өмнө
parent
commit
0079eb53c0

+ 1 - 0
drivers/regulator/act8865-regulator.c

@@ -221,6 +221,7 @@ static int act8865_pdata_from_dt(struct device *dev,
 
 
 	matched = of_regulator_match(dev, np,
 	matched = of_regulator_match(dev, np,
 				act8865_matches, ARRAY_SIZE(act8865_matches));
 				act8865_matches, ARRAY_SIZE(act8865_matches));
+	of_node_put(np);
 	if (matched <= 0)
 	if (matched <= 0)
 		return matched;
 		return matched;