hwspinlock: qcom_hwspinlock: add missing of_node_put after calling of_parse_phandle
authorPeter Chen <peter.chen@nxp.com>
Tue, 5 Jul 2016 02:11:03 +0000 (10:11 +0800)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 6 Jul 2016 19:20:34 +0000 (12:20 -0700)
of_node_put needs to be called when the device node which is got
from of_parse_phandle has finished using.

Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-arm-msm@vger.kernel.org
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/hwspinlock/qcom_hwspinlock.c

index c752447..fa6880b 100644 (file)
@@ -98,6 +98,7 @@ static int qcom_hwspinlock_probe(struct platform_device *pdev)
        }
 
        regmap = syscon_node_to_regmap(syscon);
+       of_node_put(syscon);
        if (IS_ERR(regmap))
                return PTR_ERR(regmap);