Message ID | 1392378602-32302-11-git-send-email-sachin.kamat@linaro.org |
---|---|
State | Accepted |
Headers | show
Return-Path: <patchwork-forward+bncBDM5LUP2XEPRB34I7CLQKGQEMBGSVII@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f200.google.com (mail-ob0-f200.google.com [209.85.214.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 66229202B2 for <linaro@patches.linaro.org>; Fri, 14 Feb 2014 11:56:32 +0000 (UTC) Received: by mail-ob0-f200.google.com with SMTP id wo20sf45037999obc.11 for <linaro@patches.linaro.org>; Fri, 14 Feb 2014 03:56:31 -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=Dr3uVPhO5EnCFEUlFZ9O0tpm7JPvC/EeQGJBI88CP/s=; b=Tm6tcozpOXrU9wrEWf8oLVhr1VewOfFVWL61yWu7ZybxaqE7hjbMb3veMx+0DfRQtY Lyq3uB9RSMgMd8xsbpPfq6dr9L/Jm/vnxeJ/FLWR3xhnlaBbITJ/ZEyBk2eD49O5dy5z eoXXIbBz7PGd6dFOZJeqPguLDVCpIGfCF5nTecfsEKAHfDCMHHkg78H1jrgfUwKNtAKB 1caJmyQtgvvqZPXG0tEqllfmlmZmJ1HdPgbtykuAyfp0BICSdZiV7Tw7HtAId9pijyqh XxVvAZPyCAnjhtVnahFzpTHw6VC9Mry6poUpvivowgzN7zXE0EojepLh5KbtIqzrsy2Y h+dw== X-Gm-Message-State: ALoCoQnvVa2RSojk2GYK8Tyfk6moSPlF3UdT6UORaWCFr+bYJp6iTCYT4sPCYLM7GxON2nSBzKZp X-Received: by 10.42.240.19 with SMTP id ky19mr1694229icb.4.1392378991452; Fri, 14 Feb 2014 03:56:31 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.95.134 with SMTP id i6ls50697qge.2.gmail; Fri, 14 Feb 2014 03:56:31 -0800 (PST) X-Received: by 10.220.11.141 with SMTP id t13mr943705vct.30.1392378991283; Fri, 14 Feb 2014 03:56:31 -0800 (PST) Received: from mail-ve0-f179.google.com (mail-ve0-f179.google.com [209.85.128.179]) by mx.google.com with ESMTPS id w14si1843003vco.3.2014.02.14.03.56.31 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 14 Feb 2014 03:56:31 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.179 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.179; Received: by mail-ve0-f179.google.com with SMTP id jx11so9807907veb.10 for <patchwork-forward@linaro.org>; Fri, 14 Feb 2014 03:56:31 -0800 (PST) X-Received: by 10.220.95.139 with SMTP id d11mr948708vcn.21.1392378991130; Fri, 14 Feb 2014 03:56:31 -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 u4csp102866vcz; Fri, 14 Feb 2014 03:56:30 -0800 (PST) X-Received: by 10.66.141.144 with SMTP id ro16mr8374301pab.131.1392378990270; Fri, 14 Feb 2014 03:56:30 -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 S1752747AbaBNL4L (ORCPT <rfc822;linus.walleij@linaro.org> + 27 others); Fri, 14 Feb 2014 06:56:11 -0500 Received: from mail-pb0-f48.google.com ([209.85.160.48]:63660 "EHLO mail-pb0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752720AbaBNL4I (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 14 Feb 2014 06:56:08 -0500 Received: by mail-pb0-f48.google.com with SMTP id rr13so12242634pbb.35 for <linux-kernel@vger.kernel.org>; Fri, 14 Feb 2014 03:56:07 -0800 (PST) X-Received: by 10.68.34.37 with SMTP id w5mr8364026pbi.159.1392378967755; Fri, 14 Feb 2014 03:56:07 -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.04 for <multiple recipients> (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 14 Feb 2014 03:56:07 -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 11/16] regulator: da9055: Use of_get_child_by_name Date: Fri, 14 Feb 2014 17:19:57 +0530 Message-Id: <1392378602-32302-11-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.128.179 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/da9055-regulator.c b/drivers/regulator/da9055-regulator.c index cf7404026588..126e7c6d2c12 100644 --- a/drivers/regulator/da9055-regulator.c +++ b/drivers/regulator/da9055-regulator.c @@ -559,7 +559,7 @@ static int da9055_regulator_dt_init(struct platform_device *pdev, if (!nproot) return -ENODEV; - np = of_find_node_by_name(nproot, "regulators"); + np = of_get_child_by_name(nproot, "regulators"); if (!np) 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/da9055-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)