Message ID | 1392378602-32302-10-git-send-email-sachin.kamat@linaro.org |
---|---|
State | Accepted |
Headers | show
Return-Path: <patchwork-forward+bncBDM5LUP2XEPRBRUJ7CLQKGQE46BU3YQ@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ig0-f200.google.com (mail-ig0-f200.google.com [209.85.213.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id CE506202B2 for <linaro@patches.linaro.org>; Fri, 14 Feb 2014 11:57:59 +0000 (UTC) Received: by mail-ig0-f200.google.com with SMTP id k19sf1763561igc.3 for <linaro@patches.linaro.org>; Fri, 14 Feb 2014 03:57:59 -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=TTOguIJdUX/WItvZZ77gwvQc5+1FiQZ1ettb1gMEN0M=; b=J+8oO7xq3SvtGSS2eKsHfRSFzjqICwAuNfj+OKGNRUuruJivnZ+b2Qd9Cni7FGwVcd LDi9XebW2C6xm3OSt+GGodmkikCSsvltFa+MP1UXKV8R28YKuyMCcvBTVbBrD0jwpAH/ Tj1BdYdLpl0ZJ3Kb5kDPxMumzfUnqTMNCmOH85nKX+xrEFSf4icmElJy30f5cKdyYR1z KXeM0Sk0DcYqfBfsh6RnIv23gDDCeBpPNUAYJoXRsA77qjnYpxW3SBUGXt5+wr7g/EtV 0wyYABVfPd6+1Hm4Efx+uwELCT5EyvoHcrLzGJwI54w+PzsMjbbYhTc6QhVSFDua3jXj hDEw== X-Gm-Message-State: ALoCoQmCbsBYP3BOl2rY7H9GvJl5s6bFB7OybQVjvjj6JunIf8JgaiVRhHgGyBYe41eP46guWBTx X-Received: by 10.50.26.65 with SMTP id j1mr1139733igg.7.1392379078973; Fri, 14 Feb 2014 03:57:58 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.106.71 with SMTP id d65ls47268qgf.60.gmail; Fri, 14 Feb 2014 03:57:58 -0800 (PST) X-Received: by 10.52.232.168 with SMTP id tp8mr795569vdc.38.1392379078870; Fri, 14 Feb 2014 03:57:58 -0800 (PST) Received: from mail-vc0-f177.google.com (mail-vc0-f177.google.com [209.85.220.177]) by mx.google.com with ESMTPS id p9si1837528vdv.5.2014.02.14.03.57.58 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 14 Feb 2014 03:57:58 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.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.220.177; Received: by mail-vc0-f177.google.com with SMTP id if11so9100030vcb.22 for <patchwork-forward@linaro.org>; Fri, 14 Feb 2014 03:57:58 -0800 (PST) X-Received: by 10.53.13.44 with SMTP id ev12mr4328336vdd.17.1392379078572; Fri, 14 Feb 2014 03:57:58 -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 u4csp102957vcz; Fri, 14 Feb 2014 03:57:58 -0800 (PST) X-Received: by 10.69.31.65 with SMTP id kk1mr8622835pbd.47.1392379077511; Fri, 14 Feb 2014 03:57:57 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x3si5569370pbk.113.2014.02.14.03.57.56; Fri, 14 Feb 2014 03:57:56 -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 S1752885AbaBNL5w (ORCPT <rfc822;linus.walleij@linaro.org> + 27 others); Fri, 14 Feb 2014 06:57:52 -0500 Received: from mail-pd0-f177.google.com ([209.85.192.177]:35512 "EHLO mail-pd0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752696AbaBNL4E (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 14 Feb 2014 06:56:04 -0500 Received: by mail-pd0-f177.google.com with SMTP id x10so11724486pdj.8 for <linux-kernel@vger.kernel.org>; Fri, 14 Feb 2014 03:56:04 -0800 (PST) X-Received: by 10.68.171.4 with SMTP id aq4mr8599083pbc.150.1392378964048; Fri, 14 Feb 2014 03:56:04 -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.01 for <multiple recipients> (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 14 Feb 2014 03:56:03 -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 10/16] regulator: da9052: Use of_get_child_by_name Date: Fri, 14 Feb 2014 17:19:56 +0530 Message-Id: <1392378602-32302-10-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.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/da9052-regulator.c b/drivers/regulator/da9052-regulator.c index 3adeaeffc485..889c7c9b9f15 100644 --- a/drivers/regulator/da9052-regulator.c +++ b/drivers/regulator/da9052-regulator.c @@ -401,7 +401,7 @@ static int da9052_regulator_probe(struct platform_device *pdev) if (!nproot) return -ENODEV; - nproot = of_find_node_by_name(nproot, "regulators"); + nproot = of_get_child_by_name(nproot, "regulators"); if (!nproot) return -ENODEV;
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/da9052-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)