diff options
author | Peter Chen <peter.chen@nxp.com> | 2016-07-05 04:11:03 +0200 |
---|---|---|
committer | Bjorn Andersson <bjorn.andersson@linaro.org> | 2016-07-06 21:20:34 +0200 |
commit | 4d41c8cb970cb719a7008a68ad66cf1c1ecc82ad (patch) | |
tree | bc0279357030d2dc27939088037dc3a3e173dd5c /drivers/hwspinlock/qcom_hwspinlock.c | |
parent | Linux 4.7-rc2 (diff) | |
download | linux-4d41c8cb970cb719a7008a68ad66cf1c1ecc82ad.tar.xz linux-4d41c8cb970cb719a7008a68ad66cf1c1ecc82ad.zip |
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>
Diffstat (limited to 'drivers/hwspinlock/qcom_hwspinlock.c')
-rw-r--r-- | drivers/hwspinlock/qcom_hwspinlock.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hwspinlock/qcom_hwspinlock.c b/drivers/hwspinlock/qcom_hwspinlock.c index c752447fbac7..fa6880b8060a 100644 --- a/drivers/hwspinlock/qcom_hwspinlock.c +++ b/drivers/hwspinlock/qcom_hwspinlock.c @@ -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); |