Commit 4d41c8cb authored by Peter Chen's avatar Peter Chen Committed by Bjorn Andersson

hwspinlock: qcom_hwspinlock: 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.

Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-arm-msm@vger.kernel.org
Signed-off-by: default avatarPeter Chen <peter.chen@nxp.com>
Signed-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
parent af8c34ce
......@@ -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);
......
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