aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ipq806x/patches-4.4/005-mfd-qcom_rpm-Add-missing-of_node_put-after-calling-of_parse_phandle.patch
diff options
context:
space:
mode:
authorPavel Kubelun <be.dissent@gmail.com>2016-11-06 16:22:22 +0300
committerJohn Crispin <john@phrozen.org>2016-11-16 10:59:30 +0100
commit77b6bfc2f59e85f16880e61b75a3b0cdfa35e2d7 (patch)
treef40a9857523c95f0b3e0b846aeb8160a412002ac /target/linux/ipq806x/patches-4.4/005-mfd-qcom_rpm-Add-missing-of_node_put-after-calling-of_parse_phandle.patch
parent07d0c1b947e6bbda527ee47458aa3964359d5644 (diff)
downloadupstream-77b6bfc2f59e85f16880e61b75a3b0cdfa35e2d7.tar.gz
upstream-77b6bfc2f59e85f16880e61b75a3b0cdfa35e2d7.tar.bz2
upstream-77b6bfc2f59e85f16880e61b75a3b0cdfa35e2d7.zip
ipq806x: add support for RPM message RAM
Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
Diffstat (limited to 'target/linux/ipq806x/patches-4.4/005-mfd-qcom_rpm-Add-missing-of_node_put-after-calling-of_parse_phandle.patch')
-rw-r--r--target/linux/ipq806x/patches-4.4/005-mfd-qcom_rpm-Add-missing-of_node_put-after-calling-of_parse_phandle.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/target/linux/ipq806x/patches-4.4/005-mfd-qcom_rpm-Add-missing-of_node_put-after-calling-of_parse_phandle.patch b/target/linux/ipq806x/patches-4.4/005-mfd-qcom_rpm-Add-missing-of_node_put-after-calling-of_parse_phandle.patch
new file mode 100644
index 0000000000..c80bbd5a01
--- /dev/null
+++ b/target/linux/ipq806x/patches-4.4/005-mfd-qcom_rpm-Add-missing-of_node_put-after-calling-of_parse_phandle.patch
@@ -0,0 +1,29 @@
+From 349290fc9e761aaef6d6882721189f668ec5ff49 Mon Sep 17 00:00:00 2001
+From: Peter Chen <peter.chen@nxp.com>
+Date: Fri, 15 Jul 2016 17:38:46 +0800
+Subject: mfd: qcom_rpm: Add missing of_node_put after calling of_parse_phandle
+
+of_node_put needs to be called when the device node which is got
+from of_parse_phandle has finished using.
+
+Signed-off-by: Peter Chen <peter.chen@nxp.com>
+Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
+Signed-off-by: Lee Jones <lee.jones@linaro.org>
+---
+ drivers/mfd/qcom_rpm.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/drivers/mfd/qcom_rpm.c b/drivers/mfd/qcom_rpm.c
+index a74210d..d330071 100644
+--- a/drivers/mfd/qcom_rpm.c
++++ b/drivers/mfd/qcom_rpm.c
+@@ -589,6 +589,7 @@ static int qcom_rpm_probe(struct platform_device *pdev)
+ }
+
+ rpm->ipc_regmap = syscon_node_to_regmap(syscon_np);
++ of_node_put(syscon_np);
+ if (IS_ERR(rpm->ipc_regmap))
+ return PTR_ERR(rpm->ipc_regmap);
+
+--
+cgit v0.12