mfd: qcom_rpm: Add missing of_node_put after calling of_parse_phandle
authorPeter Chen <[email protected]>
Fri, 15 Jul 2016 09:38:46 +0000 (17:38 +0800)
committerLee Jones <[email protected]>
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 <[email protected]>
Reviewed-by: Bjorn Andersson <[email protected]>
Signed-off-by: Lee Jones <[email protected]>
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);