diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2014-02-17 13:03:34 +0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-02-18 06:02:08 +0400 |
commit | cde248f92fea058bdc8be33f39c04e0651b5036e (patch) | |
tree | 9950ca7b93f8459d6e4f6314af572ea7e119f226 /drivers/regulator/max8660.c | |
parent | 826adb490098a3c86e8f7e52906f58a0b628d515 (diff) | |
download | linux-cde248f92fea058bdc8be33f39c04e0651b5036e.tar.xz |
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/max8660.c')
-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; |