diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2014-02-17 04:03:34 -0500 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-02-17 21:02:08 -0500 |
commit | cde248f92fea058bdc8be33f39c04e0651b5036e (patch) | |
tree | 9950ca7b93f8459d6e4f6314af572ea7e119f226 /drivers/regulator | |
parent | 826adb490098a3c86e8f7e52906f58a0b628d515 (diff) |
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, | |||
340 | rmatch[i].name = max8660_reg[i].name; | 340 | rmatch[i].name = max8660_reg[i].name; |
341 | 341 | ||
342 | matched = of_regulator_match(dev, np, rmatch, ARRAY_SIZE(rmatch)); | 342 | matched = of_regulator_match(dev, np, rmatch, ARRAY_SIZE(rmatch)); |
343 | of_node_put(np); | ||
343 | if (matched <= 0) | 344 | if (matched <= 0) |
344 | return matched; | 345 | return matched; |
345 | 346 | ||