regulator: tps6507x: Add missing of_node_put
authorSachin Kamat <sachin.kamat@linaro.org>
Mon, 17 Feb 2014 09:03:36 +0000 (14:33 +0530)
committerMark Brown <broonie@linaro.org>
Tue, 18 Feb 2014 02:03:51 +0000 (11:03 +0900)
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>
drivers/regulator/tps6507x-regulator.c

index 5a558da..e506e7f 100644 (file)
@@ -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);