projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
25cc275
)
regulator: da9063: Add missing of_node_put
author
Sachin Kamat
<sachin.kamat@linaro.org>
Mon, 17 Feb 2014 09:03:31 +0000
(14:33 +0530)
committer
Mark Brown
<broonie@linaro.org>
Tue, 18 Feb 2014 01:59:59 +0000
(10:59 +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/da9063-regulator.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/regulator/da9063-regulator.c
b/drivers/regulator/da9063-regulator.c
index cee856c43d8877c05730cee02939927fd085d38a..f5d1ca9ab7dd4f6f5b151009281fb7de4e90f1b4 100644
(file)
--- a/
drivers/regulator/da9063-regulator.c
+++ b/
drivers/regulator/da9063-regulator.c
@@
-672,6
+672,7
@@
static struct da9063_regulators_pdata *da9063_parse_regulators_dt(
num = of_regulator_match(&pdev->dev, node, da9063_matches,
ARRAY_SIZE(da9063_matches));
+ of_node_put(node);
if (num < 0) {
dev_err(&pdev->dev, "Failed to match regulators\n");
return ERR_PTR(-EINVAL);