From: Peter Chen Date: Fri, 15 Jul 2016 09:38:46 +0000 (+0800) Subject: mfd: qcom_rpm: Add missing of_node_put after calling of_parse_phandle X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=fe3f74bc27c16be47ff28d38a6e95d3442e6c1d9;p=deliverable%2Flinux.git 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 Reviewed-by: Bjorn Andersson Signed-off-by: Lee Jones --- diff --git a/drivers/mfd/qcom_rpm.c b/drivers/mfd/qcom_rpm.c index a74210df5969..d3300714c27b 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);