linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH RESEND 1/2] rtc: 88pm860x: Use of_get_child_by_name
@ 2014-04-23 12:29 Krzysztof Kozlowski
  2014-04-23 12:29 ` [PATCH RESEND 2/2] rtc: 88pm860x: Add missing of_node_put Krzysztof Kozlowski
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Krzysztof Kozlowski @ 2014-04-23 12:29 UTC (permalink / raw)
  To: Alessandro Zummo, rtc-linux, linux-kernel
  Cc: Andrew Morton, Haojian Zhuang, Jingoo Han, Sachin Kamat,
	Krzysztof Kozlowski

Use of_get_child_by_name to obtain reference to charger node instead of
of_find_node_by_name which can walk outside of the parent node.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
---
 drivers/rtc/rtc-88pm860x.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/rtc/rtc-88pm860x.c b/drivers/rtc/rtc-88pm860x.c
index 816504846cdd..fb9e3c63b4ac 100644
--- a/drivers/rtc/rtc-88pm860x.c
+++ b/drivers/rtc/rtc-88pm860x.c
@@ -293,7 +293,7 @@ static int pm860x_rtc_dt_init(struct platform_device *pdev,
 	int ret;
 	if (!np)
 		return -ENODEV;
-	np = of_find_node_by_name(np, "rtc");
+	np = of_get_child_by_name(np, "rtc");
 	if (!np) {
 		dev_err(&pdev->dev, "failed to find rtc node\n");
 		return -ENODEV;
-- 
1.9.1


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

end of thread, other threads:[~2014-04-23 20:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-23 12:29 [PATCH RESEND 1/2] rtc: 88pm860x: Use of_get_child_by_name Krzysztof Kozlowski
2014-04-23 12:29 ` [PATCH RESEND 2/2] rtc: 88pm860x: Add missing of_node_put Krzysztof Kozlowski
2014-04-23 13:29   ` Jingoo Han
2014-04-23 12:57 ` [PATCH RESEND 1/2] rtc: 88pm860x: Use of_get_child_by_name Jingoo Han
2014-04-23 20:14 ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).