Message ID | 1396597841-2273-1-git-send-email-k.kozlowski@samsung.com |
---|---|
State | Superseded |
Headers | show
Return-Path: <rtc-linux+bncBCH7NA7HVUOBBW6I7GMQKGQESISEJYI@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-ve0-x239.google.com (mail-ve0-x239.google.com [IPv6:2607:f8b0:400c:c01::239]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 7A763140095 for <incoming@patchwork.ozlabs.org>; Fri, 4 Apr 2014 18:50:54 +1100 (EST) Received: by mail-ve0-f185.google.com with SMTP id jw12sf305340veb.22 for <incoming@patchwork.ozlabs.org>; Fri, 04 Apr 2014 00:50:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=mime-version:from:to:cc:subject:date:message-id:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe:content-type; bh=LLfJeAYla65+mURM0Uvws0BvrcWLcyAKg/gayxwecgk=; b=h6SMd/7l02ejTHbalgsZoKbdsn8ZT9aXI+AGWCTiCvphPY1+dPKj9gXDj0Lu7Plkag 4FrC6ho8zCYEPWlrBEWTY1eiDHwG79ZnQ7a/sutU14FtIYTx/chDO4gWXkFn327vh1zQ +kt41x2XuAWUdF+Vh8Ao3nD/ASmUmsPpHRYfS1RU8pSJu0OTBdSiRsan3gHWPXYdUSY5 Gu1FMMNSD24Vr8cR+E7ulC+yIU91CFKOV7WCkpkiK+63BFM0eHAgJIxUO/RtLDNOh8aH /do4kX3pkuZI7cpj3CYeByKgjhkHphZshqphTBQQZNbUggjeat2+YFTIa4rKISUSKoIL qEzw== X-Received: by 10.140.51.40 with SMTP id t37mr3777qga.36.1396597851890; Fri, 04 Apr 2014 00:50:51 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.140.19.136 with SMTP id 8ls918803qgh.43.gmail; Fri, 04 Apr 2014 00:50:51 -0700 (PDT) X-Received: by 10.236.84.141 with SMTP id s13mr6703005yhe.5.1396597851587; Fri, 04 Apr 2014 00:50:51 -0700 (PDT) Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com. [210.118.77.11]) by gmr-mx.google.com with ESMTPS id g1si3398887pbw.2.2014.04.04.00.50.51 for <rtc-linux@googlegroups.com> (version=TLSv1 cipher=RC4-MD5 bits=128/128); Fri, 04 Apr 2014 00:50:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of k.kozlowski@samsung.com designates 210.118.77.11 as permitted sender) client-ip=210.118.77.11; Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245]) by mailout1.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N3H00KGSXSPN710@mailout1.w1.samsung.com> for rtc-linux@googlegroups.com; Fri, 04 Apr 2014 08:50:49 +0100 (BST) X-AuditID: cbfec7f5-b7fc96d000004885-a4-533e645958f9 Received: from eusync1.samsung.com ( [203.254.199.211]) by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id 39.C8.18565.9546E335; Fri, 04 Apr 2014 08:50:49 +0100 (BST) Received: from AMDC1943.digital.local ([106.116.151.171]) by eusync1.samsung.com (Oracle Communications Messaging Server 7u4-23.01(7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0N3H003A5XSMXH90@eusync1.samsung.com>; Fri, 04 Apr 2014 08:50:49 +0100 (BST) From: Krzysztof Kozlowski <k.kozlowski@samsung.com> To: Alessandro Zummo <a.zummo@towertech.it>, rtc-linux@googlegroups.com, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski <k.kozlowski@samsung.com> Subject: [rtc-linux] [PATCH 1/2] rtc: 88pm860x: Use of_get_child_by_name Date: Fri, 04 Apr 2014 09:50:40 +0200 Message-id: <1396597841-2273-1-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.7.9.5 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrGJMWRmVeSWpSXmKPExsVy+t/xy7qRKXbBBqvPyVosuXiV3eL1C0OL y7vmsFns7+xgdGDx2DPxJJtH35ZVjB7T5/1k8vi8SS6AJYrLJiU1J7MstUjfLoEr4+ifkoJJ bBUrZ91nbWDsY+1i5OSQEDCR+PHxDiOELSZx4d56ti5GLg4hgaWMEm8arjFBOH1MEm8X32EG qWITMJbYvHwJG4gtIpAusWjaFSYQm1nAUOLnuz/sILawgI3EystrWLoYOThYBFQl5r1JAAnz CrhJnFjfzAwSlhBQkJgzyWYCI/cCRoZVjKKppckFxUnpuUZ6xYm5xaV56XrJ+bmbGCF+/7qD cekxq0OMAhyMSjy8HOm2wUKsiWXFlbmHGCU4mJVEePsC7YKFeFMSK6tSi/Lji0pzUosPMTJx cEo1MEr+FJtzln+W10bdP5ml3Kfiu/Y3HEgOdOcy4L3caXxYxKTES2YWy+lN6dO/nSyyLTX1 kQn8dJ1NZd2Kho/OqfYsEzreNwkbRx/JlmO7ViblouAm0lv52q1cjVOchdV/2U2xJ22SzIWP 2LOnxTdYXWWTiJJK95m/nvmXiErXEr9LfLm6UtJKLMUZiYZazEXFiQA82fDq2QEAAA== X-Original-Sender: k.kozlowski@samsung.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: best guess record for domain of k.kozlowski@samsung.com designates 210.118.77.11 as permitted sender) smtp.mail=k.kozlowski@samsung.com Reply-To: rtc-linux@googlegroups.com Precedence: list Mailing-list: list rtc-linux@googlegroups.com; contact rtc-linux+owners@googlegroups.com List-ID: <rtc-linux.googlegroups.com> X-Google-Group-Id: 712029733259 List-Post: <http://groups.google.com/group/rtc-linux/post>, <mailto:rtc-linux@googlegroups.com> List-Help: <http://groups.google.com/support/>, <mailto:rtc-linux+help@googlegroups.com> List-Archive: <http://groups.google.com/group/rtc-linux> Sender: rtc-linux@googlegroups.com List-Subscribe: <http://groups.google.com/group/rtc-linux/subscribe>, <mailto:rtc-linux+subscribe@googlegroups.com> List-Unsubscribe: <http://groups.google.com/group/rtc-linux/subscribe>, <mailto:googlegroups-manage+712029733259+unsubscribe@googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1 |
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;
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(-)