diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2014-02-17 14:33:34 +0530 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-02-18 11:02:08 +0900 |
commit | cde248f92fea058bdc8be33f39c04e0651b5036e (patch) | |
tree | 9950ca7b93f8459d6e4f6314af572ea7e119f226 /drivers/regulator | |
parent | 826adb490098a3c86e8f7e52906f58a0b628d515 (diff) | |
download | linux-cde248f92fea058bdc8be33f39c04e0651b5036e.tar.bz2 |
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>
Diffstat (limited to 'drivers/regulator')
-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; |