diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2014-02-17 10:03:34 +0100 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-02-18 03:02:08 +0100 |
commit | cde248f92fea058bdc8be33f39c04e0651b5036e (patch) | |
tree | 9950ca7b93f8459d6e4f6314af572ea7e119f226 | |
parent | regulator: max8660: Use of_get_child_by_name (diff) | |
download | linux-cde248f92fea058bdc8be33f39c04e0651b5036e.tar.xz linux-cde248f92fea058bdc8be33f39c04e0651b5036e.zip |
regulator: max8660: 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>
-rw-r--r-- | drivers/regulator/max8660.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/regulator/max8660.c b/drivers/regulator/max8660.c index 70351abbd1e9..61ecd0892637 100644 --- a/drivers/regulator/max8660.c +++ b/drivers/regulator/max8660.c @@ -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; |