From patchwork Tue Sep 9 11:07:05 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 37094 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oi0-f69.google.com (mail-oi0-f69.google.com [209.85.218.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D5A8C20C93 for ; Tue, 9 Sep 2014 11:08:10 +0000 (UTC) Received: by mail-oi0-f69.google.com with SMTP id a141sf38714220oig.8 for ; Tue, 09 Sep 2014 04:08:10 -0700 (PDT) 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=+ZIsis2X0KE1UF8WNm/v8jPJAviiPD2wAIoIJTtKGbc=; b=jXCZR02MQ7lu+3mTj17SFRplxvZF3a6wnYDmqk+rripRiVKSic4sUUa+4w7pHPqVoi 8Rl+JmdPUcbSViUPlkriH7132MwBflEc4KYkU/kAt8UQ3y8gChcL5G4W644TdU4lwKet u6X0qDm4wzmqSNMJRG7XbO33VnH1EUQ570JpVrQTzBKGqYFIGgY8S+7j/3hKERnpb23s f8PDz+688ldD6YTIKXJA47sorgHrz/AVRL5k2q4REWvbrlwmIYJKvUE97f3toRvu9hBJ v2MUXFaQilU3L2JvRsqdTsrIrfSIBPyt/s3j+3nNtZtiU11iV+Y2pbWDBtF3ZpwlrTSW Saqw== X-Gm-Message-State: ALoCoQky4c1zF3ChC1ixGmz8vGgKDuU30g437CfyOeNR9zY57Zf8W3tbAWwbOqlgPcRznpMGP+MQ X-Received: by 10.182.110.130 with SMTP id ia2mr22166887obb.42.1410260890527; Tue, 09 Sep 2014 04:08:10 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.82.75 with SMTP id g69ls1626950qgd.53.gmail; Tue, 09 Sep 2014 04:08:10 -0700 (PDT) X-Received: by 10.220.77.65 with SMTP id f1mr1499828vck.48.1410260890414; Tue, 09 Sep 2014 04:08:10 -0700 (PDT) Received: from mail-vc0-f171.google.com (mail-vc0-f171.google.com [209.85.220.171]) by mx.google.com with ESMTPS id hf10si3702569vdb.57.2014.09.09.04.08.10 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 09 Sep 2014 04:08:10 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.171 as permitted sender) client-ip=209.85.220.171; Received: by mail-vc0-f171.google.com with SMTP id id10so16831910vcb.16 for ; Tue, 09 Sep 2014 04:08:10 -0700 (PDT) X-Received: by 10.221.6.201 with SMTP id ol9mr29638832vcb.2.1410260890319; Tue, 09 Sep 2014 04:08:10 -0700 (PDT) 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.221.45.67 with SMTP id uj3csp266821vcb; Tue, 9 Sep 2014 04:08:09 -0700 (PDT) X-Received: by 10.66.221.193 with SMTP id qg1mr56862968pac.9.1410260889194; Tue, 09 Sep 2014 04:08:09 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ds14si6047404pdb.166.2014.09.09.04.08.08 for ; Tue, 09 Sep 2014 04:08:09 -0700 (PDT) Received-SPF: none (google.com: devicetree-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753274AbaIILIH (ORCPT + 5 others); Tue, 9 Sep 2014 07:08:07 -0400 Received: from mail-pa0-f44.google.com ([209.85.220.44]:46518 "EHLO mail-pa0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752935AbaIILIG (ORCPT ); Tue, 9 Sep 2014 07:08:06 -0400 Received: by mail-pa0-f44.google.com with SMTP id kx10so5208550pab.31 for ; Tue, 09 Sep 2014 04:08:06 -0700 (PDT) X-Received: by 10.70.36.239 with SMTP id t15mr56254981pdj.83.1410260886278; Tue, 09 Sep 2014 04:08:06 -0700 (PDT) Received: from localhost.localdomain ([125.39.9.137]) by mx.google.com with ESMTPSA id k11sm8410959pbq.64.2014.09.09.04.08.03 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 09 Sep 2014 04:08:05 -0700 (PDT) From: Guodong Xu To: broonie@kernel.org, lgirdwood@gmail.com, shawn.guo@linaro.org, axel.lin@ingics.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: Guodong Xu Subject: [PATCH] regulator: mc13xxx: add missing of_node_get() Date: Tue, 9 Sep 2014 19:07:05 +0800 Message-Id: <1410260825-21667-1-git-send-email-guodong.xu@linaro.org> X-Mailer: git-send-email 1.9.1 Sender: devicetree-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: devicetree@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: guodong.xu@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.171 as permitted sender) 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: , mc13xxx_parse_regulators_dt() goes through dt tree to search for regulator sub-nodes. For each matched node, later on it will be used and registered into a regulator_dev. of_node_get() should be called to increase its refcount. Signed-off-by: Guodong Xu --- drivers/regulator/mc13xxx-regulator-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/mc13xxx-regulator-core.c b/drivers/regulator/mc13xxx-regulator-core.c index afba024..ebc8ff1 100644 --- a/drivers/regulator/mc13xxx-regulator-core.c +++ b/drivers/regulator/mc13xxx-regulator-core.c @@ -195,7 +195,7 @@ struct mc13xxx_regulator_init_data *mc13xxx_parse_regulators_dt( p->id = i; p->init_data = of_get_regulator_init_data( &pdev->dev, child); - p->node = child; + p->node = of_node_get(child); p++; parsed++;