mfd: qcom_rpm: Add missing of_node_put after calling of_parse_phandle
authorPeter Chen <peter.chen@nxp.com>
Fri, 15 Jul 2016 09:38:46 +0000 (17:38 +0800)
committerLee Jones <lee.jones@linaro.org>
Tue, 4 Oct 2016 14:48:01 +0000 (15:48 +0100)
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

index a74210df59693c9813708eb0db435c3674c33c40..d3300714c27b715f44126edd12f5ee42b8688a4c 100644 (file)
@@ -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);