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

index 676f75548f0028435b6795bc0371490c462a641e..5674f886c47188332fbb4f5b35a242637ef09915 100644 (file)
@@ -188,6 +188,7 @@ static struct tps65090_platform_data *tps65090_parse_dt_reg_data(
 
        ret = of_regulator_match(&pdev->dev, regulators, tps65090_matches,
                        ARRAY_SIZE(tps65090_matches));
+       of_node_put(regulators);
        if (ret < 0) {
                dev_err(&pdev->dev,
                        "Error parsing regulator init data: %d\n", ret);
This page took 0.0247 seconds and 5 git commands to generate.