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:
38dbfb5
)
regulator: as3722: Add missing of_node_put
author
Sachin Kamat
<sachin.kamat@linaro.org>
Mon, 17 Feb 2014 09:03:30 +0000
(14:33 +0530)
committer
Mark Brown
<broonie@linaro.org>
Tue, 18 Feb 2014 01:59:02 +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/as3722-regulator.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/regulator/as3722-regulator.c
b/drivers/regulator/as3722-regulator.c
index 8b17d786cb713d5176996a36fa66bd2dae96f0b8..85585219ce824140ef3a8f48fed2539ff5b11f07 100644
(file)
--- a/
drivers/regulator/as3722-regulator.c
+++ b/
drivers/regulator/as3722-regulator.c
@@
-719,6
+719,7
@@
static int as3722_get_regulator_dt_data(struct platform_device *pdev,
ret = of_regulator_match(&pdev->dev, np, as3722_regulator_matches,
ARRAY_SIZE(as3722_regulator_matches));
+ of_node_put(np);
if (ret < 0) {
dev_err(&pdev->dev, "Parsing of regulator node failed: %d\n",
ret);