Message ID | 1392378602-32302-2-git-send-email-sachin.kamat@linaro.org |
---|---|
State | Accepted |
Headers | show
Return-Path: <patchwork-forward+bncBDM5LUP2XEPRBKMK7CLQKGQEQA6BCJY@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pb0-f71.google.com (mail-pb0-f71.google.com [209.85.160.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9761420448 for <linaro@patches.linaro.org>; Fri, 14 Feb 2014 11:59:38 +0000 (UTC) Received: by mail-pb0-f71.google.com with SMTP id jt11sf26238388pbb.6 for <linaro@patches.linaro.org>; Fri, 14 Feb 2014 03:59:37 -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=SHf4hl1HeOhlJUZBYd6FJFkzzuyQnLvvs3ZE6JV5o7k=; b=jlO3vQOnYkrengyV6AETnMwN2txZP9GJ0fJiDBpjyQzpjT5K3/r1+KCVo88bowfjBh I7lcqQkGQfNkjz1VzlsGSpcQAMSqIqO9GD4Vc6FX5L44CPRHzbq+A9/uHSe4cNDzyzSU Nr6ZQ3gsqRQsqBXSqlRbmaZZUikm+tOjr/qOvSwHJZZoMS5vqU63tlv6TatCWIvf9rLE s8Kj6oMA3HRXhhvf8SC83zj1eRbstZPNnDO+fH4ivvQ8fe5vXPoME/c6s/+1rOVgHejN rED0rwi/aYvmwsw1C9mOrsDcjRrYckY514s62J9A2qOBIOzLhwcvzFBwQ4Sd93DVkA7C SbJA== X-Gm-Message-State: ALoCoQkevyQQyBWumqHihObzYbKoySsCBb0bcxzhCNJn+0qa2n6eN2kSvoFw4NWYO4GApN61OAGV X-Received: by 10.66.66.109 with SMTP id e13mr2846359pat.1.1392379177816; Fri, 14 Feb 2014 03:59:37 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.106.71 with SMTP id d65ls47530qgf.60.gmail; Fri, 14 Feb 2014 03:59:37 -0800 (PST) X-Received: by 10.220.98.143 with SMTP id q15mr653196vcn.38.1392379177706; Fri, 14 Feb 2014 03:59:37 -0800 (PST) Received: from mail-vc0-f179.google.com (mail-vc0-f179.google.com [209.85.220.179]) by mx.google.com with ESMTPS id tt2si1817730vdc.139.2014.02.14.03.59.37 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 14 Feb 2014 03:59:37 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.179 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.179; Received: by mail-vc0-f179.google.com with SMTP id lh14so9094400vcb.24 for <patchwork-forward@linaro.org>; Fri, 14 Feb 2014 03:59:37 -0800 (PST) X-Received: by 10.220.10.2 with SMTP id n2mr941762vcn.26.1392379177325; Fri, 14 Feb 2014 03:59:37 -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 u4csp103035vcz; Fri, 14 Feb 2014 03:59:36 -0800 (PST) X-Received: by 10.68.237.228 with SMTP id vf4mr8524571pbc.131.1392379176526; Fri, 14 Feb 2014 03:59:36 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r3si5548614pbh.220.2014.02.14.03.59.35; Fri, 14 Feb 2014 03:59:35 -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 S1752486AbaBNLzp (ORCPT <rfc822;linus.walleij@linaro.org> + 27 others); Fri, 14 Feb 2014 06:55:45 -0500 Received: from mail-pa0-f53.google.com ([209.85.220.53]:63565 "EHLO mail-pa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751584AbaBNLzm (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 14 Feb 2014 06:55:42 -0500 Received: by mail-pa0-f53.google.com with SMTP id lj1so12115261pab.26 for <linux-kernel@vger.kernel.org>; Fri, 14 Feb 2014 03:55:42 -0800 (PST) X-Received: by 10.68.131.100 with SMTP id ol4mr3966087pbb.134.1392378942354; Fri, 14 Feb 2014 03:55:42 -0800 (PST) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id ix5sm16231160pbd.36.2014.02.14.03.55.39 for <multiple recipients> (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 14 Feb 2014 03:55:41 -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 02/16] regulator: max77693: Use of_get_child_by_name Date: Fri, 14 Feb 2014 17:19:48 +0530 Message-Id: <1392378602-32302-2-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.220.179 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/max77693.c b/drivers/regulator/max77693.c index 5fb899f461d0..057d040e6feb 100644 --- a/drivers/regulator/max77693.c +++ b/drivers/regulator/max77693.c @@ -170,7 +170,7 @@ static int max77693_pmic_dt_parse_rdata(struct device *dev, struct max77693_regulator_data *tmp; int i, matched = 0; - np = of_find_node_by_name(dev->parent->of_node, "regulators"); + np = of_get_child_by_name(dev->parent->of_node, "regulators"); if (!np) 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/max77693.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)