From patchwork Fri Feb 14 11:49:55 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 24633 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f197.google.com (mail-ob0-f197.google.com [209.85.214.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 27EA0202B2 for ; Fri, 14 Feb 2014 11:56:31 +0000 (UTC) Received: by mail-ob0-f197.google.com with SMTP id gq1sf44955289obb.8 for ; Fri, 14 Feb 2014 03:56:30 -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=08I4Qz+4dj/J3gjPCXocsKfg/eZUBXOamfMMvpKEWDg=; b=ZnNskzA1b1d3dUNQC/bLXgPk9awp2kJGfmt9Q9uRxEUgmMVOWDWdtYTYuftvazYWT2 hNp0hbvMCznwjkmD3BTaGdcVmsPd+MlZWBZFf6WiESmHe++xgjJc7MdZasLIJpkZpGO/ VllTXiq3aImtsZR/LA1YuN/gGqPatx/52r1eUXLc1XflYWmC5hUVGFS37TDh5QiygGZC BxnNoHaQ2XElYWESg3gHxZlDs99OEsh+TRKUxbQMZFHddF27obzhQhd16zc/0ZHhaFnj j3BL8gg0fa4CMwILiaYbYFC/EUsrMu8Yqr/B8IiD+QYTXPOuJiGtz0h0u8DFol2hAWPe VZzQ== X-Gm-Message-State: ALoCoQkUOOk2VhYovG2l/Uu/6SIKB3A+szUAVrPYKsI2zCIgiSvkpPjIiwUFaKL/2+bxLfArV3zA X-Received: by 10.182.65.168 with SMTP id y8mr2899526obs.38.1392378990183; Fri, 14 Feb 2014 03:56:30 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.49.113 with SMTP id p104ls47869qga.41.gmail; Fri, 14 Feb 2014 03:56:30 -0800 (PST) X-Received: by 10.53.13.44 with SMTP id ev12mr4324213vdd.17.1392378990091; Fri, 14 Feb 2014 03:56:30 -0800 (PST) Received: from mail-vc0-f175.google.com (mail-vc0-f175.google.com [209.85.220.175]) by mx.google.com with ESMTPS id kl10si1815559vdb.142.2014.02.14.03.56.28 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 14 Feb 2014 03:56:28 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.175 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.175; Received: by mail-vc0-f175.google.com with SMTP id ij19so9310532vcb.34 for ; Fri, 14 Feb 2014 03:56:28 -0800 (PST) X-Received: by 10.52.155.66 with SMTP id vu2mr507177vdb.50.1392378988667; Fri, 14 Feb 2014 03:56:28 -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 u4csp102865vcz; Fri, 14 Feb 2014 03:56:28 -0800 (PST) X-Received: by 10.68.130.169 with SMTP id of9mr8535446pbb.79.1392378987646; Fri, 14 Feb 2014 03:56:27 -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.27; Fri, 14 Feb 2014 03:56:27 -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 S1751065AbaBNL4F (ORCPT + 27 others); Fri, 14 Feb 2014 06:56:05 -0500 Received: from mail-pd0-f180.google.com ([209.85.192.180]:52612 "EHLO mail-pd0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752643AbaBNL4C (ORCPT ); Fri, 14 Feb 2014 06:56:02 -0500 Received: by mail-pd0-f180.google.com with SMTP id x10so11796638pdj.25 for ; Fri, 14 Feb 2014 03:56:01 -0800 (PST) X-Received: by 10.66.141.144 with SMTP id ro16mr8372119pab.131.1392378961335; Fri, 14 Feb 2014 03:56:01 -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.58 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 14 Feb 2014 03:56:00 -0800 (PST) From: Sachin Kamat To: linux-kernel@vger.kernel.org Cc: broonie@kernel.org, lgirdwood@gmail.com, sachin.kamat@linaro.org Subject: [PATCH 09/16] regulator: as3711: Use of_get_child_by_name Date: Fri, 14 Feb 2014 17:19:55 +0530 Message-Id: <1392378602-32302-9-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: 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.175 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: , List-Help: , List-Archive: List-Unsubscribe: , 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 --- drivers/regulator/as3711-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/as3711-regulator.c b/drivers/regulator/as3711-regulator.c index 67fd548dcdba..856c55f3a832 100644 --- a/drivers/regulator/as3711-regulator.c +++ b/drivers/regulator/as3711-regulator.c @@ -191,7 +191,7 @@ static int as3711_regulator_parse_dt(struct device *dev, { struct as3711_regulator_pdata *pdata = dev_get_platdata(dev); struct device_node *regulators = - of_find_node_by_name(dev->parent->of_node, "regulators"); + of_get_child_by_name(dev->parent->of_node, "regulators"); struct of_regulator_match *match; int ret, i;