All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] hwspinlock: qcom_hwspinlock: add missing of_node_put after calling of_parse_phandle
@ 2016-07-05  2:11 ` Peter Chen
  0 siblings, 0 replies; 10+ messages in thread
From: Peter Chen @ 2016-07-05  2:11 UTC (permalink / raw)
  To: mathieu.poirier; +Cc: Peter Chen, linux-arm-kernel, linux-arm-msm

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>
---
 drivers/hwspinlock/qcom_hwspinlock.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/hwspinlock/qcom_hwspinlock.c b/drivers/hwspinlock/qcom_hwspinlock.c
index c752447..fa6880b 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);
 
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2016-07-07  3:50 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-05  2:11 [PATCH 1/2] hwspinlock: qcom_hwspinlock: add missing of_node_put after calling of_parse_phandle Peter Chen
2016-07-05  2:11 ` Peter Chen
2016-07-05  2:11 ` [PATCH 2/2] hwtracing: coresight: of_coresight: " Peter Chen
2016-07-05 16:44   ` Mathieu Poirier
2016-07-06 19:35 ` [PATCH 1/2] hwspinlock: qcom_hwspinlock: " Bjorn Andersson
2016-07-06 19:35   ` Bjorn Andersson
2016-07-07  1:18   ` Peter Chen
2016-07-07  1:18     ` Peter Chen
2016-07-07  3:50     ` Bjorn Andersson
2016-07-07  3:50       ` Bjorn Andersson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.