From patchwork Fri Feb 14 11:50:02 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 24638 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f71.google.com (mail-oa0-f71.google.com [209.85.219.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9573F202B2 for ; Fri, 14 Feb 2014 11:56:40 +0000 (UTC) Received: by mail-oa0-f71.google.com with SMTP id g12sf49147911oah.2 for ; Fri, 14 Feb 2014 03:56:39 -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=n0tRfricQJBQfDHf/ACMRY286PsBt6b1g82gI2TjrMc=; b=KfTBq/S7Fn9v7oGzIFUoGoKT91j5lWFbkX2SoiX/BgVBt1HZyGdKsnrtmFDtlCEFwf nMRsa7gLAk+mhqna3uXScTbQjkUewVQ5lnrdQ13cBncQqvm/H0g5RoNrFWntDx4/4/P2 2evxpdHKzbK7UL3Q9OclsmPxY21qaSNjMhL2Jw27SPXakJPD8FfsJh4BWC8+fH6SdxG3 jTUSj531sk1zJgubiVjO3myYY8IanpM6TtPm5diW6V9Ceuisff4cMBR01c8jewLISRqL qgUw7x98/nNhhnS8M5houw0Ly199HPGWHT6O6EDVpUyu6c9IT+2dVaClq31lT/n6qhCx PVRQ== X-Gm-Message-State: ALoCoQkugaoGMrq94XewcoEaMN555kE3CEU/RM2xBSbgpxTHdKakTAHxaanvHKHs8ftpBXZFdHag X-Received: by 10.183.3.36 with SMTP id bt4mr2874410obd.29.1392378999652; Fri, 14 Feb 2014 03:56:39 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.26.195 with SMTP id 61ls48134qgv.19.gmail; Fri, 14 Feb 2014 03:56:39 -0800 (PST) X-Received: by 10.220.88.204 with SMTP id b12mr5104444vcm.3.1392378999533; Fri, 14 Feb 2014 03:56:39 -0800 (PST) Received: from mail-ve0-f176.google.com (mail-ve0-f176.google.com [209.85.128.176]) by mx.google.com with ESMTPS id p9si1829088vdv.57.2014.02.14.03.56.38 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 14 Feb 2014 03:56:38 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.176 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.176; Received: by mail-ve0-f176.google.com with SMTP id jx11so2376223veb.7 for ; Fri, 14 Feb 2014 03:56:38 -0800 (PST) X-Received: by 10.221.37.1 with SMTP id tc1mr933472vcb.32.1392378998322; Fri, 14 Feb 2014 03:56:38 -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 u4csp102878vcz; Fri, 14 Feb 2014 03:56:37 -0800 (PST) X-Received: by 10.66.141.144 with SMTP id ro16mr8374846pab.131.1392378997444; Fri, 14 Feb 2014 03:56:37 -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.34; Fri, 14 Feb 2014 03:56:34 -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 S1752852AbaBNL41 (ORCPT + 27 others); Fri, 14 Feb 2014 06:56:27 -0500 Received: from mail-pd0-f181.google.com ([209.85.192.181]:36348 "EHLO mail-pd0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752801AbaBNL4W (ORCPT ); Fri, 14 Feb 2014 06:56:22 -0500 Received: by mail-pd0-f181.google.com with SMTP id y10so11835149pdj.12 for ; Fri, 14 Feb 2014 03:56:22 -0800 (PST) X-Received: by 10.66.129.133 with SMTP id nw5mr8523071pab.98.1392378982253; Fri, 14 Feb 2014 03:56:22 -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.19 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 14 Feb 2014 03:56:21 -0800 (PST) From: Sachin Kamat To: linux-kernel@vger.kernel.org Cc: broonie@kernel.org, lgirdwood@gmail.com, sachin.kamat@linaro.org Subject: [PATCH 16/16] regulator: tps65217: Use of_get_child_by_name Date: Fri, 14 Feb 2014 17:20:02 +0530 Message-Id: <1392378602-32302-16-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.128.176 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/tps65217-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/tps65217-regulator.c b/drivers/regulator/tps65217-regulator.c index 9ea1bf26bd13..fd441f2738f5 100644 --- a/drivers/regulator/tps65217-regulator.c +++ b/drivers/regulator/tps65217-regulator.c @@ -187,7 +187,7 @@ static struct tps65217_board *tps65217_parse_dt(struct platform_device *pdev) struct device_node *regs; int i, count; - regs = of_find_node_by_name(node, "regulators"); + regs = of_get_child_by_name(node, "regulators"); if (!regs) return NULL;