projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
826adb4
)
regulator: max8660: Add missing of_node_put
author
Sachin Kamat
<sachin.kamat@linaro.org>
Mon, 17 Feb 2014 09:03:34 +0000
(14:33 +0530)
committer
Mark 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
patch
|
blob
|
history
diff --git
a/drivers/regulator/max8660.c
b/drivers/regulator/max8660.c
index
70351ab
..
61ecd08
100644
(file)
--- 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;