From patchwork Tue Mar 4 05:46:58 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 25652 Return-Path: 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 530B020540 for ; Tue, 4 Mar 2014 05:53:15 +0000 (UTC) Received: by mail-ob0-f197.google.com with SMTP id wp18sf25835061obc.4 for ; Mon, 03 Mar 2014 21:53:14 -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=1ZwWUP1+nIRuowPxEBWoLjUidtfqJ5lzdRrYlrNrlU0=; b=PLbP5oToC2DVPXUyc95TmC2XTL8zljxJVP/cXfdRbRBNYSf8v4rdmO5Ycu5whjXLqi bVTcy/gMAA7iVWvht3eZsPkgMIXrFqZAja63RyyoCjTGlBkcGfmYJUR8JWdcMFQr1psx L2xExd9O0cHAXqglAaxXd0o4SNdTg+J19/sHbOa4c9yJo8QhmJmlQjsESPBWjkDTcteM YUwYb8dEjgej+Z83FbSWK1nkh19zhse/zoPGBkCvEIRu85JcKz8foFidGilyU3M3RXyN bwlbwD3Vso9L/p9CJQy78fGmR7FgWvL0sU4qfYBUeppMdUK16YKlIVp6vxvfRAeH8aD3 /7Cg== X-Gm-Message-State: ALoCoQnqDNn5475iw41slWfpmX37m7yIpW5PHdPFyIcTtoV+JE8jJ2TliMlr+ewM3LwnBp37PkLK X-Received: by 10.51.16.65 with SMTP id fu1mr10629112igd.3.1393912394504; Mon, 03 Mar 2014 21:53:14 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.48.161 with SMTP id o30ls2505166qga.94.gmail; Mon, 03 Mar 2014 21:53:14 -0800 (PST) X-Received: by 10.52.104.68 with SMTP id gc4mr2505294vdb.2.1393912394404; Mon, 03 Mar 2014 21:53:14 -0800 (PST) Received: from mail-ve0-f171.google.com (mail-ve0-f171.google.com [209.85.128.171]) by mx.google.com with ESMTPS id el6si5558686vcb.14.2014.03.03.21.53.14 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 03 Mar 2014 21:53:14 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.171 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.171; Received: by mail-ve0-f171.google.com with SMTP id cz12so5097341veb.30 for ; Mon, 03 Mar 2014 21:53:14 -0800 (PST) X-Received: by 10.58.170.69 with SMTP id ak5mr880380vec.28.1393912394326; Mon, 03 Mar 2014 21:53:14 -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.130.193 with SMTP id u1csp104105vcs; Mon, 3 Mar 2014 21:53:13 -0800 (PST) X-Received: by 10.68.76.68 with SMTP id i4mr23728015pbw.73.1393912393239; Mon, 03 Mar 2014 21:53:13 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ub8si1765939pac.300.2014.03.03.21.53.11; Mon, 03 Mar 2014 21:53:11 -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 S1756200AbaCDFw4 (ORCPT + 26 others); Tue, 4 Mar 2014 00:52:56 -0500 Received: from mail-pb0-f48.google.com ([209.85.160.48]:41815 "EHLO mail-pb0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751414AbaCDFwx (ORCPT ); Tue, 4 Mar 2014 00:52:53 -0500 Received: by mail-pb0-f48.google.com with SMTP id md12so4737371pbc.35 for ; Mon, 03 Mar 2014 21:52:52 -0800 (PST) X-Received: by 10.68.19.164 with SMTP id g4mr23896648pbe.36.1393912372493; Mon, 03 Mar 2014 21:52:52 -0800 (PST) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id iv2sm21646480pbc.19.2014.03.03.21.52.49 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 03 Mar 2014 21:52:51 -0800 (PST) From: Sachin Kamat To: linux-kernel@vger.kernel.org Cc: broonie@kernel.org, lgirdwood@gmail.com, sbkim73@samsung.com, sachin.kamat@linaro.org Subject: [PATCH 2/2] regulator: s2mps11: Add missing of_node_put Date: Tue, 4 Mar 2014 11:16:58 +0530 Message-Id: <1393912018-15780-2-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1393912018-15780-1-git-send-email-sachin.kamat@linaro.org> References: <1393912018-15780-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.128.171 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: , Add of_node_put to decrement the ref count. Signed-off-by: Sachin Kamat --- drivers/regulator/s2mps11.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/regulator/s2mps11.c b/drivers/regulator/s2mps11.c index 0f6177b..6eaf69b 100644 --- a/drivers/regulator/s2mps11.c +++ b/drivers/regulator/s2mps11.c @@ -446,6 +446,7 @@ static int s2mps11_pmic_probe(struct platform_device *pdev) } of_regulator_match(&pdev->dev, reg_np, rdata, s2mps11->rdev_num); + of_node_put(reg_np); common_reg: platform_set_drvdata(pdev, s2mps11);