提交 4d41c8cb 编写于 作者: P Peter Chen 提交者: 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: NPeter Chen <peter.chen@nxp.com>
Signed-off-by: NBjorn Andersson <bjorn.andersson@linaro.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册