浏览代码

regulator: tps65090: 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 年之前
父节点
当前提交
026cdfe6f8
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/regulator/tps65090-regulator.c

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

@@ -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);