From patchwork Fri Mar 21 12:39:20 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 3873721 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 83D3D9F382 for ; Fri, 21 Mar 2014 12:39:37 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B96C020279 for ; Fri, 21 Mar 2014 12:39:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D417A2026C for ; Fri, 21 Mar 2014 12:39:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759943AbaCUMje (ORCPT ); Fri, 21 Mar 2014 08:39:34 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:49559 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755343AbaCUMjd (ORCPT ); Fri, 21 Mar 2014 08:39:33 -0400 Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245]) by mailout2.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N2S00HTSDTOBZ50@mailout2.w1.samsung.com>; Fri, 21 Mar 2014 12:39:24 +0000 (GMT) X-AuditID: cbfec7f5-b7fc96d000004885-81-532c330243da Received: from eusync2.samsung.com ( [203.254.199.212]) by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id CA.9D.18565.2033C235; Fri, 21 Mar 2014 12:39:30 +0000 (GMT) Received: from AMDC1943.digital.local ([106.116.151.171]) by eusync2.samsung.com (Oracle Communications Messaging Server 7u4-23.01(7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0N2S00E8LDTQD4A0@eusync2.samsung.com>; Fri, 21 Mar 2014 12:39:30 +0000 (GMT) From: Krzysztof Kozlowski To: Mike Turquette , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: Tushar Behera , Kyungmin Park , Marek Szyprowski , Bartlomiej Zolnierkiewicz , Tomasz Figa , Krzysztof Kozlowski Subject: [PATCH 2/2] clk: s2mps11: Use of_get_child_by_name Date: Fri, 21 Mar 2014 13:39:20 +0100 Message-id: <1395405560-11733-1-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1395404297-12133-1-git-send-email-k.kozlowski@samsung.com> References: <1395404297-12133-1-git-send-email-k.kozlowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrHJMWRmVeSWpSXmKPExsVy+t/xK7pMxjrBBmvXyllsnLGe1eL1C0OL s01v2C02Pb7GanF51xw2ixnn9zFZrD1yl93i6YSLbBbrZ7xmsWj/u5fNgcvjzrU9bB6bl9R7 9G1ZxejxeZNcAEsUl01Kak5mWWqRvl0CV8aRRStYC16yVTRNmMLewPiCtYuRk0NCwERiS9sW dghbTOLCvfVsILaQwFJGiStzQ7oYuYDsPiaJY+23wRJsAsYSm5cvYQNJiAhMZZTYuH4RE4jD LDCZSWLZsoOMIFXCAtYSV26dYwGxWQRUJaZ2PwLr5hVwl+ievRyohgNonYLEnEk2IGFOAQ+J 5Zv+sUJsdpf4fmUX0wRG3gWMDKsYRVNLkwuKk9JzjfSKE3OLS/PS9ZLzczcxQsLs6w7Gpces DjEKcDAq8fBWcGoHC7EmlhVX5h5ilOBgVhLh3WmgEyzEm5JYWZValB9fVJqTWnyIkYmDU6qB 8bbHzE0VAv8XVkxnbuDbP3/G5J+bzTex3zitknv7lry/UnTbx9ev99ypPBJ1l/fUlAU8/H03 z/+qlW0+YcTp8iRO8aHXn68HftYmt06VmtrO8l1k8XKhK5u6D3wv8J0XYLq/NXBCdNoDTzue tG36Km7/OnYl7Jh1fe/a6e+z3jAo8Ky/+IZdykSJpTgj0VCLuag4EQCLt0SIEQIAAA== Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP of_find_node_by_name() walks over all nodes and can thus walk outside of the parent node. Use of_get_child_by_name() instead. Signed-off-by: Krzysztof Kozlowski --- drivers/clk/clk-s2mps11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/clk-s2mps11.c b/drivers/clk/clk-s2mps11.c index 27c83e45eaed..6de6a970c086 100644 --- a/drivers/clk/clk-s2mps11.c +++ b/drivers/clk/clk-s2mps11.c @@ -132,7 +132,7 @@ static struct device_node *s2mps11_clk_parse_dt(struct platform_device *pdev) if (!iodev->dev->of_node) return ERR_PTR(-EINVAL); - clk_np = of_find_node_by_name(iodev->dev->of_node, "clocks"); + clk_np = of_get_child_by_name(iodev->dev->of_node, "clocks"); if (!clk_np) { dev_err(&pdev->dev, "could not find clock sub-node\n"); return ERR_PTR(-EINVAL);