From patchwork Mon Feb 17 09:03:31 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 24745 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f70.google.com (mail-oa0-f70.google.com [209.85.219.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 157F4202B2 for ; Mon, 17 Feb 2014 09:13:50 +0000 (UTC) Received: by mail-oa0-f70.google.com with SMTP id m1sf63214223oag.5 for ; Mon, 17 Feb 2014 01:13:50 -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=zlPaMONpFlc3lkXGNijNhWSRjFIpwCs+tv8+zINgXBs=; b=GrvUzyNKHTDxH6T7Cee8K2EL3i2CXG8P7SpqVBubaN2TL7zjx3AnFnB4be4pZC2ykW yz40gGeq3PLqAwjk9/bELj514e1HhJasEZFyQTaEVEuTOUzC6zXd+xQAGFzrT7zxIpaD B1IUZQLjDSLQkcn2jNWdb1iEK5yGgvChHp2R7Vkre+V5GWfKDHdFyChljfvPiYf3m4Je 6OunQJ2swPmzPq5bYYbfi2tThcMW+A4jclP81yREkhpV7cuLAvIZuopXIsXAIoP3WBBY 9lmIXSz4MoM5bMk9uh072lF6G9fmwO3lsYxqRGhxUguPYYDpOH292Ml11ClFgSKUCs0q 1i8w== X-Gm-Message-State: ALoCoQkOXJPWal8FdZy5PQ7AmiMziR4k+YyopBFLWc+cW0n88VNsqFoKFV9nRi4RpYEfa11z+cvE X-Received: by 10.183.3.36 with SMTP id bt4mr9764480obd.29.1392628430216; Mon, 17 Feb 2014 01:13:50 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.23.80 with SMTP id 74ls935139qgo.61.gmail; Mon, 17 Feb 2014 01:13:50 -0800 (PST) X-Received: by 10.220.114.135 with SMTP id e7mr532441vcq.39.1392628430074; Mon, 17 Feb 2014 01:13:50 -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 h13si4344911vct.68.2014.02.17.01.13.50 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 17 Feb 2014 01:13:50 -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 jx11so12061892veb.10 for ; Mon, 17 Feb 2014 01:13:50 -0800 (PST) X-Received: by 10.221.29.196 with SMTP id rz4mr16396782vcb.8.1392628430001; Mon, 17 Feb 2014 01:13:50 -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 u4csp122998vcz; Mon, 17 Feb 2014 01:13:49 -0800 (PST) X-Received: by 10.66.102.4 with SMTP id fk4mr24875624pab.59.1392628429193; Mon, 17 Feb 2014 01:13:49 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x3si14126294pbk.83.2014.02.17.01.13.48; Mon, 17 Feb 2014 01:13:48 -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 S1753013AbaBQJN2 (ORCPT + 27 others); Mon, 17 Feb 2014 04:13:28 -0500 Received: from mail-pa0-f44.google.com ([209.85.220.44]:54290 "EHLO mail-pa0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751823AbaBQJJI (ORCPT ); Mon, 17 Feb 2014 04:09:08 -0500 Received: by mail-pa0-f44.google.com with SMTP id kq14so15067127pab.31 for ; Mon, 17 Feb 2014 01:09:07 -0800 (PST) X-Received: by 10.68.94.4 with SMTP id cy4mr13565147pbb.101.1392628147635; Mon, 17 Feb 2014 01:09:07 -0800 (PST) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id ug2sm112608647pac.21.2014.02.17.01.09.05 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 17 Feb 2014 01:09:07 -0800 (PST) From: Sachin Kamat To: linux-kernel@vger.kernel.org Cc: broonie@kernel.org, lgirdwood@gmail.com, sachin.kamat@linaro.org Subject: [PATCH 3/9] regulator: da9063: Add missing of_node_put Date: Mon, 17 Feb 2014 14:33:31 +0530 Message-Id: <1392627817-26957-3-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1392627817-26957-1-git-send-email-sachin.kamat@linaro.org> References: <1392627817-26957-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.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: , List-Help: , List-Archive: List-Unsubscribe: , Add of_node_put to decrement the ref count. Signed-off-by: Sachin Kamat --- drivers/regulator/da9063-regulator.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/regulator/da9063-regulator.c b/drivers/regulator/da9063-regulator.c index bfd7f2f795a6..a61b5d997a08 100644 --- a/drivers/regulator/da9063-regulator.c +++ b/drivers/regulator/da9063-regulator.c @@ -674,6 +674,7 @@ static struct da9063_regulators_pdata *da9063_parse_regulators_dt( num = of_regulator_match(&pdev->dev, node, da9063_matches, ARRAY_SIZE(da9063_matches)); + of_node_put(node); if (num < 0) { dev_err(&pdev->dev, "Failed to match regulators\n"); return ERR_PTR(-EINVAL);