Message ID | 1392378602-32302-12-git-send-email-sachin.kamat@linaro.org |
---|---|
State | Accepted |
Headers | show
Return-Path: <patchwork-forward+bncBDM5LUP2XEPRB4EI7CLQKGQEJHXEZMI@linaro.org> 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 5534E202B2 for <linaro@patches.linaro.org>; Fri, 14 Feb 2014 11:56:33 +0000 (UTC) Received: by mail-ob0-f197.google.com with SMTP id gq1sf44955418obb.8 for <linaro@patches.linaro.org>; Fri, 14 Feb 2014 03:56:32 -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=r8zhan208B0D0WMs/IIXXuGu+QQVFLY3ZAjqJI47wKA=; b=TXVw2Hi7F2TMmFXLgLPvtufIgAD0sXPCFd7kduKjp3RLg098A2YD45Lq6LsgmXsBbg e8C74CYhMO84xzipw9wM4ta9sLmduumjQAzZTQ47E8vQctuPUozxZBO4ddJjt2p9/z8+ UIkV9T/hXHYlTfIuxUurH8epUgKbYLpcXlLhYV+gioum9bIEGVkjr50p8akwZtR7LtqA Dt+DH0fhqpGnlLKLKwNwiWsve+Ou8w0+lHgaKh7oq92OatBap5OT2TLvJ+1JqCjhXxnY MqDqxn7XTMKmesIZiBV8H+/S2oQq0z0QD70gD0mVLEY+AeFrLrOdpBUEywCFh06NYw2c bOEw== X-Gm-Message-State: ALoCoQkeM79plifj3+OslpzWN91TsPRadobasCBsph3jjTf5qBdsOd2pDU06j4z6BixatzEOLKLa X-Received: by 10.182.17.69 with SMTP id m5mr2846515obd.6.1392378992467; Fri, 14 Feb 2014 03:56:32 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.48.161 with SMTP id o30ls46918qga.94.gmail; Fri, 14 Feb 2014 03:56:32 -0800 (PST) X-Received: by 10.221.39.138 with SMTP id tm10mr5192132vcb.7.1392378992356; Fri, 14 Feb 2014 03:56:32 -0800 (PST) Received: from mail-vc0-f174.google.com (mail-vc0-f174.google.com [209.85.220.174]) by mx.google.com with ESMTPS id cy15si1838922veb.30.2014.02.14.03.56.32 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 14 Feb 2014 03:56:32 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.174 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.174; Received: by mail-vc0-f174.google.com with SMTP id im17so9089129vcb.5 for <patchwork-forward@linaro.org>; Fri, 14 Feb 2014 03:56:32 -0800 (PST) X-Received: by 10.220.131.210 with SMTP id y18mr5259689vcs.12.1392378992058; Fri, 14 Feb 2014 03:56:32 -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 u4csp102870vcz; Fri, 14 Feb 2014 03:56:31 -0800 (PST) X-Received: by 10.68.202.8 with SMTP id ke8mr8685273pbc.86.1392378991003; Fri, 14 Feb 2014 03:56:31 -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.30; Fri, 14 Feb 2014 03:56:30 -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 S1752772AbaBNL4N (ORCPT <rfc822;linus.walleij@linaro.org> + 27 others); Fri, 14 Feb 2014 06:56:13 -0500 Received: from mail-pa0-f48.google.com ([209.85.220.48]:58973 "EHLO mail-pa0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752749AbaBNL4L (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 14 Feb 2014 06:56:11 -0500 Received: by mail-pa0-f48.google.com with SMTP id kx10so12161091pab.7 for <linux-kernel@vger.kernel.org>; Fri, 14 Feb 2014 03:56:11 -0800 (PST) X-Received: by 10.69.26.228 with SMTP id jb4mr8385847pbd.83.1392378971010; Fri, 14 Feb 2014 03:56:11 -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.08 for <multiple recipients> (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 14 Feb 2014 03:56:10 -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 12/16] regulator: da9063: Use of_get_child_by_name Date: Fri, 14 Feb 2014 17:19:58 +0530 Message-Id: <1392378602-32302-12-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.174 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/da9063-regulator.c b/drivers/regulator/da9063-regulator.c index 91e99a2c8dc1..bfd7f2f795a6 100644 --- a/drivers/regulator/da9063-regulator.c +++ b/drivers/regulator/da9063-regulator.c @@ -666,7 +666,7 @@ static struct da9063_regulators_pdata *da9063_parse_regulators_dt( struct device_node *node; int i, n, num; - node = of_find_node_by_name(pdev->dev.parent->of_node, "regulators"); + node = of_get_child_by_name(pdev->dev.parent->of_node, "regulators"); if (!node) { dev_err(&pdev->dev, "Regulators device node not found\n"); return ERR_PTR(-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/da9063-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)