Commit 349290fc authored by Peter Chen's avatar Peter Chen Committed by Lee Jones

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: default avatarPeter Chen <peter.chen@nxp.com>
Reviewed-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent b304746c
...@@ -589,6 +589,7 @@ static int qcom_rpm_probe(struct platform_device *pdev) ...@@ -589,6 +589,7 @@ static int qcom_rpm_probe(struct platform_device *pdev)
} }
rpm->ipc_regmap = syscon_node_to_regmap(syscon_np); rpm->ipc_regmap = syscon_node_to_regmap(syscon_np);
of_node_put(syscon_np);
if (IS_ERR(rpm->ipc_regmap)) if (IS_ERR(rpm->ipc_regmap))
return PTR_ERR(rpm->ipc_regmap); return PTR_ERR(rpm->ipc_regmap);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment