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: Peter Chen <peter.chen@nxp.com> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
This commit is contained in:
parent
af8c34ce6a
commit
4d41c8cb97
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue