From patchwork Fri Feb 14 11:50:01 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 24639 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f198.google.com (mail-qc0-f198.google.com [209.85.216.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9F214202B2 for ; Fri, 14 Feb 2014 11:57:09 +0000 (UTC) Received: by mail-qc0-f198.google.com with SMTP id c9sf24240320qcz.5 for ; Fri, 14 Feb 2014 03:57:08 -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=olup9rayszAm76BRF7nP77CFHSJQOVCqiCymYECrxlo=; b=IT/UrQCqBm6fFUdH0SJ9e2HX25k93LM/L1CH4DYMprWe/wbmN5h4jPEHXN/JTP8Tqx vcNqCmyQiT9BNSNqCzGJqldqZnc9likKTnb02mu/l1nHbhk6d2ZSbaHW8a7t8YNe9ekC ccVIwbaLitGaXXmPxSOBO2405xr4iHV6v7QVKZqQ2Kq36XGvXssVoCclPdAImlyafSaZ 3ZlF1xdKUbEAHuF01BIE5xfkz+8Srvp2w+PDpYXtRYzAPBNB5mZJmfE4qWXKRJbWbTSU EdhklOXEn4irg+CBRJ1k3AF2OBu765tFhALMLtwTrLydz88ITRYUXPSq9v4RNHiK5kYS WBUQ== X-Gm-Message-State: ALoCoQlUTAJlPKvj1gma33y76giiapF6Mb8fsoaYuQaAeP6SN2dREefZH4DUAugcUkZtZVuIEmhO X-Received: by 10.236.61.170 with SMTP id w30mr2572708yhc.20.1392379028870; Fri, 14 Feb 2014 03:57:08 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.101.134 with SMTP id u6ls45410qge.79.gmail; Fri, 14 Feb 2014 03:57:08 -0800 (PST) X-Received: by 10.220.88.204 with SMTP id b12mr5106089vcm.3.1392379028743; Fri, 14 Feb 2014 03:57:08 -0800 (PST) Received: from mail-vc0-f170.google.com (mail-vc0-f170.google.com [209.85.220.170]) by mx.google.com with ESMTPS id tj7si1838054vdc.7.2014.02.14.03.57.08 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 14 Feb 2014 03:57:08 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.170 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.170; Received: by mail-vc0-f170.google.com with SMTP id hu8so9489354vcb.1 for ; Fri, 14 Feb 2014 03:57:08 -0800 (PST) X-Received: by 10.52.30.230 with SMTP id v6mr4365197vdh.6.1392379027907; Fri, 14 Feb 2014 03:57:07 -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 u4csp102908vcz; Fri, 14 Feb 2014 03:57:07 -0800 (PST) X-Received: by 10.66.156.137 with SMTP id we9mr8707370pab.30.1392379024805; Fri, 14 Feb 2014 03:57:04 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id sd3si5559205pbb.162.2014.02.14.03.57.04; Fri, 14 Feb 2014 03:57:04 -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 S1752872AbaBNL4y (ORCPT + 27 others); Fri, 14 Feb 2014 06:56:54 -0500 Received: from mail-pa0-f46.google.com ([209.85.220.46]:51660 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752804AbaBNL4U (ORCPT ); Fri, 14 Feb 2014 06:56:20 -0500 Received: by mail-pa0-f46.google.com with SMTP id rd3so12136296pab.19 for ; Fri, 14 Feb 2014 03:56:19 -0800 (PST) X-Received: by 10.69.31.65 with SMTP id kk1mr8615243pbd.47.1392378979546; Fri, 14 Feb 2014 03:56:19 -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.17 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 14 Feb 2014 03:56:18 -0800 (PST) From: Sachin Kamat To: linux-kernel@vger.kernel.org Cc: broonie@kernel.org, lgirdwood@gmail.com, sachin.kamat@linaro.org Subject: [PATCH 15/16] regulator: tps6507x: Use of_get_child_by_name Date: Fri, 14 Feb 2014 17:20:01 +0530 Message-Id: <1392378602-32302-15-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.170 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/tps6507x-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/tps6507x-regulator.c b/drivers/regulator/tps6507x-regulator.c index 862cc81f822f..5a558dad27e3 100644 --- a/drivers/regulator/tps6507x-regulator.c +++ b/drivers/regulator/tps6507x-regulator.c @@ -385,7 +385,7 @@ static struct tps6507x_board *tps6507x_parse_dt_reg_data( return NULL; } - regulators = of_find_node_by_name(np, "regulators"); + regulators = of_get_child_by_name(np, "regulators"); if (!regulators) { dev_err(&pdev->dev, "regulator node not found\n"); return NULL;