Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Peter Chen and committed by
Bjorn Andersson
4d41c8cb af8c34ce

+1
+1
drivers/hwspinlock/qcom_hwspinlock.c
··· 98 98 } 99 99 100 100 regmap = syscon_node_to_regmap(syscon); 101 + of_node_put(syscon); 101 102 if (IS_ERR(regmap)) 102 103 return PTR_ERR(regmap); 103 104