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

index 70351ab..61ecd08 100644 (file)
@@ -340,6 +340,7 @@ static int max8660_pdata_from_dt(struct device *dev,
                rmatch[i].name = max8660_reg[i].name;
 
        matched = of_regulator_match(dev, np, rmatch, ARRAY_SIZE(rmatch));
+       of_node_put(np);
        if (matched <= 0)
                return matched;