c80bbd5a01c0a51ffc729ac13b8d0dc06ff260af
[oweals/openwrt.git] /
1 From 349290fc9e761aaef6d6882721189f668ec5ff49 Mon Sep 17 00:00:00 2001
2 From: Peter Chen <peter.chen@nxp.com>
3 Date: Fri, 15 Jul 2016 17:38:46 +0800
4 Subject: mfd: qcom_rpm: Add missing of_node_put after calling of_parse_phandle
5
6 of_node_put needs to be called when the device node which is got
7 from of_parse_phandle has finished using.
8
9 Signed-off-by: Peter Chen <peter.chen@nxp.com>
10 Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
11 Signed-off-by: Lee Jones <lee.jones@linaro.org>
12 ---
13  drivers/mfd/qcom_rpm.c | 1 +
14  1 file changed, 1 insertion(+)
15
16 diff --git a/drivers/mfd/qcom_rpm.c b/drivers/mfd/qcom_rpm.c
17 index a74210d..d330071 100644
18 --- a/drivers/mfd/qcom_rpm.c
19 +++ b/drivers/mfd/qcom_rpm.c
20 @@ -589,6 +589,7 @@ static int qcom_rpm_probe(struct platform_device *pdev)
21         }
22  
23         rpm->ipc_regmap = syscon_node_to_regmap(syscon_np);
24 +       of_node_put(syscon_np);
25         if (IS_ERR(rpm->ipc_regmap))
26                 return PTR_ERR(rpm->ipc_regmap);
27  
28 -- 
29 cgit v0.12