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:
af8c34c
)
hwspinlock: qcom_hwspinlock: add missing of_node_put after calling of_parse_phandle
author
Peter Chen
<peter.chen@nxp.com>
Tue, 5 Jul 2016 02:11:03 +0000
(10:11 +0800)
committer
Bjorn Andersson
<bjorn.andersson@linaro.org>
Wed, 6 Jul 2016 19:20:34 +0000
(12:20 -0700)
of_node_put needs to be called when the device node which is got
from of_parse_phandle has finished using.
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-arm-msm@vger.kernel.org
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/hwspinlock/qcom_hwspinlock.c
patch
|
blob
|
history
diff --git
a/drivers/hwspinlock/qcom_hwspinlock.c
b/drivers/hwspinlock/qcom_hwspinlock.c
index
c752447
..
fa6880b
100644
(file)
--- a/
drivers/hwspinlock/qcom_hwspinlock.c
+++ b/
drivers/hwspinlock/qcom_hwspinlock.c
@@
-98,6
+98,7
@@
static int qcom_hwspinlock_probe(struct platform_device *pdev)
}
regmap = syscon_node_to_regmap(syscon);
+ of_node_put(syscon);
if (IS_ERR(regmap))
return PTR_ERR(regmap);