Message ID | 1392378602-32302-14-git-send-email-sachin.kamat@linaro.org |
---|---|
State | Accepted |
Headers | show
Return-Path: <patchwork-forward+bncBDM5LUP2XEPRB44I7CLQKGQE6T2FZUI@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pb0-f69.google.com (mail-pb0-f69.google.com [209.85.160.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 86F5420448 for <linaro@patches.linaro.org>; Fri, 14 Feb 2014 11:56:36 +0000 (UTC) Received: by mail-pb0-f69.google.com with SMTP id md12sf26250094pbc.4 for <linaro@patches.linaro.org>; Fri, 14 Feb 2014 03:56:35 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=wKuc58NmXHNGEmserfvK1uO4GYmExvYpIQcnWWRPgv4=; b=ZDQ1QLztT3L6SzSF/M8eDxiKuGSTspD3VQVCqp7ctSaUZ1QY49vTWYFQEi0u7UXdIy uAgeO9n9ItlPpIzUwNMh2qIk7HJyJ8hK2X1ucCdY7GNxSyFtOOkEhY2+POy1y4Pq6dXC XWVqNP2Vnif0G9Ha2gQyqbgTXBL9mtcP9+hsotVaVjRykjGcYQEzYwrLE52CQXty8uvq DpBv5Ktw4jQcZXIb7fSzfGy2wx8l7Sw+hL+657WxNWblCgJ3EJGQm2B55qLW4R9WpwEF AbwNoBrXd1rNZJm0QzJ6UYoycDvyG10f57KK19yXW67HuFwYHHJooHnXru0jO0LjQg/V 3YTQ== X-Gm-Message-State: ALoCoQkxuvkyYoCE9QladtTw9+7g95iqS2gAETLPeM9Ft3T4DjLtU51YnNPLzVas45r68GcfKS+r X-Received: by 10.66.222.105 with SMTP id ql9mr3100573pac.9.1392378995799; Fri, 14 Feb 2014 03:56:35 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.101.70 with SMTP id t64ls47572qge.1.gmail; Fri, 14 Feb 2014 03:56:35 -0800 (PST) X-Received: by 10.52.95.233 with SMTP id dn9mr4330016vdb.3.1392378995682; Fri, 14 Feb 2014 03:56:35 -0800 (PST) Received: from mail-ve0-f177.google.com (mail-ve0-f177.google.com [209.85.128.177]) by mx.google.com with ESMTPS id sq4si1830363vdc.41.2014.02.14.03.56.35 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 14 Feb 2014 03:56:35 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.177 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.177; Received: by mail-ve0-f177.google.com with SMTP id jz11so9470398veb.22 for <patchwork-forward@linaro.org>; Fri, 14 Feb 2014 03:56:35 -0800 (PST) X-Received: by 10.220.92.135 with SMTP id r7mr5141843vcm.11.1392378995574; Fri, 14 Feb 2014 03:56:35 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.174.196 with SMTP id u4csp102875vcz; Fri, 14 Feb 2014 03:56:35 -0800 (PST) X-Received: by 10.66.142.233 with SMTP id rz9mr8541215pab.71.1392378994533; Fri, 14 Feb 2014 03:56:34 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id of8si5551644pbc.163.2014.02.14.03.56.33; Fri, 14 Feb 2014 03:56:33 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752829AbaBNL4V (ORCPT <rfc822;linus.walleij@linaro.org> + 27 others); Fri, 14 Feb 2014 06:56:21 -0500 Received: from mail-pa0-f52.google.com ([209.85.220.52]:50764 "EHLO mail-pa0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752801AbaBNL4R (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 14 Feb 2014 06:56:17 -0500 Received: by mail-pa0-f52.google.com with SMTP id bj1so12200554pad.39 for <linux-kernel@vger.kernel.org>; Fri, 14 Feb 2014 03:56:16 -0800 (PST) X-Received: by 10.68.197.133 with SMTP id iu5mr8587478pbc.132.1392378976913; Fri, 14 Feb 2014 03:56:16 -0800 (PST) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id ix5sm16231160pbd.36.2014.02.14.03.56.14 for <multiple recipients> (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 14 Feb 2014 03:56:16 -0800 (PST) From: Sachin Kamat <sachin.kamat@linaro.org> To: linux-kernel@vger.kernel.org Cc: broonie@kernel.org, lgirdwood@gmail.com, sachin.kamat@linaro.org Subject: [PATCH 14/16] regulator: pfuze100: Use of_get_child_by_name Date: Fri, 14 Feb 2014 17:20:00 +0530 Message-Id: <1392378602-32302-14-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1392378602-32302-1-git-send-email-sachin.kamat@linaro.org> References: <1392378602-32302-1-git-send-email-sachin.kamat@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: <patchwork-forward.linaro.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: sachin.kamat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.177 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe>, <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com> |
diff --git a/drivers/regulator/pfuze100-regulator.c b/drivers/regulator/pfuze100-regulator.c index b699d4e7acc5..c1cb20204a94 100644 --- a/drivers/regulator/pfuze100-regulator.c +++ b/drivers/regulator/pfuze100-regulator.c @@ -254,7 +254,7 @@ static int pfuze_parse_regulators_dt(struct pfuze_chip *chip) if (!np) return 0; - parent = of_find_node_by_name(np, "regulators"); + parent = of_get_child_by_name(np, "regulators"); if (!parent) { dev_err(dev, "regulators node not found\n"); return -EINVAL;
of_find_node_by_name walks the allnodes list, and can thus walk outside of the parent node. Use of_get_child_by_name instead. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> --- drivers/regulator/pfuze100-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)