You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
950 B
Diff
30 lines
950 B
Diff
8 years ago
|
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
|