Message ID | 1392291307-21104-1-git-send-email-sachin.kamat@linaro.org |
---|---|
State | Accepted |
Headers | show
Return-Path: <patchwork-forward+bncBDM5LUP2XEPRBMW66KLQKGQERAOOMDY@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pb0-f72.google.com (mail-pb0-f72.google.com [209.85.160.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 63C4A203BE for <linaro@patches.linaro.org>; Thu, 13 Feb 2014 11:40:35 +0000 (UTC) Received: by mail-pb0-f72.google.com with SMTP id up15sf22808700pbc.11 for <linaro@patches.linaro.org>; Thu, 13 Feb 2014 03:40:34 -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:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=1nNLmU7LAmNtfmSpZkCaX3lusOH9s9HF6K0osvVCFik=; b=P5+i7CBiTqep4l7LwI32ru7egPKWQ0RyKtA+UOGEji34AZ5LZrVINwaraH9tWP7e30 Bp2/TN5ZwWq9Tgdq0JFNDtzTWoWm2tbHRVm5VmHcwNS3rHtnGdO3IUlhIOT5tjovSNWO ckwtzDbIvRZnBN6yTho93pksAeEnAnSe95gfcfVgokaY5JgM7GhUhzC/qOsy2cDitrfJ jjNBouV2kPeD+zqXtDoE6sgRlSmCr5YwO0nVFFju+ETxEzpUrDb7+IgONGf3SW8QSbWZ +sTqGPzjgL+QCV7zg2vDEoQxbjD6iWaWUtjMVj0eXBXK1UjjVNuO+j6ixdF44CN/Yezm 8pCA== X-Gm-Message-State: ALoCoQlxs2sIAdjQFmjAJ+tv0raGVBWwYtoc0V9Lck42lFudDwPyNMAh7UDQ6bf3yg2uJhO9BxkT X-Received: by 10.67.4.202 with SMTP id cg10mr314087pad.42.1392291634634; Thu, 13 Feb 2014 03:40:34 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.107.228 with SMTP id h91ls2548464qgf.76.gmail; Thu, 13 Feb 2014 03:40:34 -0800 (PST) X-Received: by 10.58.49.129 with SMTP id u1mr680609ven.0.1392291634417; Thu, 13 Feb 2014 03:40:34 -0800 (PST) Received: from mail-vb0-f45.google.com (mail-vb0-f45.google.com [209.85.212.45]) by mx.google.com with ESMTPS id kn3si561732veb.54.2014.02.13.03.40.34 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 13 Feb 2014 03:40:34 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.45 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.45; Received: by mail-vb0-f45.google.com with SMTP id m10so8185623vbh.32 for <patchwork-forward@linaro.org>; Thu, 13 Feb 2014 03:40:34 -0800 (PST) X-Received: by 10.58.37.67 with SMTP id w3mr651091vej.22.1392291634286; Thu, 13 Feb 2014 03:40:34 -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 u4csp18725vcz; Thu, 13 Feb 2014 03:40:33 -0800 (PST) X-Received: by 10.66.102.66 with SMTP id fm2mr1137429pab.51.1392291633250; Thu, 13 Feb 2014 03:40:33 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id oq9si1822909pac.6.2014.02.13.03.40.32; Thu, 13 Feb 2014 03:40:32 -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 S1754308AbaBMLk1 (ORCPT <rfc822;linus.walleij@linaro.org> + 27 others); Thu, 13 Feb 2014 06:40:27 -0500 Received: from mail-pd0-f171.google.com ([209.85.192.171]:53558 "EHLO mail-pd0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752524AbaBMLk0 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 13 Feb 2014 06:40:26 -0500 Received: by mail-pd0-f171.google.com with SMTP id g10so10344416pdj.16 for <linux-kernel@vger.kernel.org>; Thu, 13 Feb 2014 03:40:25 -0800 (PST) X-Received: by 10.68.125.164 with SMTP id mr4mr1148743pbb.27.1392291625555; Thu, 13 Feb 2014 03:40:25 -0800 (PST) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id j3sm5620573pbh.38.2014.02.13.03.40.20 for <multiple recipients> (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 13 Feb 2014 03:40:22 -0800 (PST) From: Sachin Kamat <sachin.kamat@linaro.org> To: linux-kernel@vger.kernel.org Cc: broonie@kernel.org, lgirdwood@gmail.com, sbkim73@samsung.com, sachin.kamat@linaro.org Subject: [PATCH 1/2] regulator: s5m8767: Use of_get_child_by_name Date: Thu, 13 Feb 2014 17:05:06 +0530 Message-Id: <1392291307-21104-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 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.212.45 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/s5m8767.c b/drivers/regulator/s5m8767.c index 6850a25a41c4..40de16802681 100644 --- a/drivers/regulator/s5m8767.c +++ b/drivers/regulator/s5m8767.c @@ -601,7 +601,7 @@ static int s5m8767_pmic_dt_parse_pdata(struct platform_device *pdev, return -ENODEV; } - regulators_np = of_find_node_by_name(pmic_np, "regulators"); + regulators_np = of_get_child_by_name(pmic_np, "regulators"); if (!regulators_np) { dev_err(iodev->dev, "could not find regulators sub-node\n"); return -EINVAL;
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/s5m8767.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)