From patchwork Mon Feb 17 09:03:34 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 24739 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f198.google.com (mail-ob0-f198.google.com [209.85.214.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 48DC8202B2 for ; Mon, 17 Feb 2014 09:09:43 +0000 (UTC) Received: by mail-ob0-f198.google.com with SMTP id wp4sf57911651obc.9 for ; Mon, 17 Feb 2014 01:09:42 -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=Zx2xWf5cBz8N9VmOGBbqd4/G3VgVWf5r8DfGpvY5Snc=; b=kWQaHr6K3UJjemv1yPwdyJhsCOoniOjhb1yNhOvogxxGKu+UiwhSj+X/sm3riTCiR6 Di9e3yEEScxl1b1FxmeN5kxY7yTNMWYrggnhfQmCiCmXdWVHBOOuHdTNPFmWC8+Hq5dM 3D4nqecDFvBAMPCEYvrm81VujohvlPW7+6DHZ8q4LbPBz7GomEew2WN9Df1z8Fn6l0Qo 50tByaJZt6JOUYlJ+UHPfQzlYpSlgPfA2n18h3KaklmcLVFiMHIW+2NPegTmHk+jiSYw AtN0EFQNs1gieljTYBpcpItSOjSv9B3L57STpthJssxChU5HhEYI7Q8h7CGXe00J0pTh uMEw== X-Gm-Message-State: ALoCoQmgfg7syHN7+pUbVrj9I8LgWTnzIupIiawvJuIMBHWFFkQ+uOm9SMcq5snLfTzL+Vnw+AMX X-Received: by 10.182.156.11 with SMTP id wa11mr10172509obb.12.1392628182393; Mon, 17 Feb 2014 01:09:42 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.50.1 with SMTP id r1ls102646qga.24.gmail; Mon, 17 Feb 2014 01:09:42 -0800 (PST) X-Received: by 10.52.246.133 with SMTP id xw5mr10093665vdc.32.1392628182305; Mon, 17 Feb 2014 01:09:42 -0800 (PST) Received: from mail-ve0-f182.google.com (mail-ve0-f182.google.com [209.85.128.182]) by mx.google.com with ESMTPS id rb4si4331338vec.136.2014.02.17.01.09.42 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 17 Feb 2014 01:09:42 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.182 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.182; Received: by mail-ve0-f182.google.com with SMTP id jy13so12039328veb.13 for ; Mon, 17 Feb 2014 01:09:42 -0800 (PST) X-Received: by 10.52.191.9 with SMTP id gu9mr3630895vdc.37.1392628182237; Mon, 17 Feb 2014 01:09:42 -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 u4csp122715vcz; Mon, 17 Feb 2014 01:09:41 -0800 (PST) X-Received: by 10.66.119.136 with SMTP id ku8mr25195630pab.121.1392628181418; Mon, 17 Feb 2014 01:09:41 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id xf4si14108960pab.46.2014.02.17.01.09.40; Mon, 17 Feb 2014 01:09:40 -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 S1752453AbaBQJJT (ORCPT + 27 others); Mon, 17 Feb 2014 04:09:19 -0500 Received: from mail-pa0-f53.google.com ([209.85.220.53]:51683 "EHLO mail-pa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752076AbaBQJJQ (ORCPT ); Mon, 17 Feb 2014 04:09:16 -0500 Received: by mail-pa0-f53.google.com with SMTP id lj1so14960498pab.26 for ; Mon, 17 Feb 2014 01:09:15 -0800 (PST) X-Received: by 10.66.216.129 with SMTP id oq1mr24968702pac.75.1392628155476; Mon, 17 Feb 2014 01:09:15 -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.13 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 17 Feb 2014 01:09:14 -0800 (PST) From: Sachin Kamat To: linux-kernel@vger.kernel.org Cc: broonie@kernel.org, lgirdwood@gmail.com, sachin.kamat@linaro.org Subject: [PATCH 6/9] regulator: max8660: Add missing of_node_put Date: Mon, 17 Feb 2014 14:33:34 +0530 Message-Id: <1392627817-26957-6-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.182 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/max8660.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/regulator/max8660.c b/drivers/regulator/max8660.c index 70351abbd1e9..61ecd0892637 100644 --- a/drivers/regulator/max8660.c +++ b/drivers/regulator/max8660.c @@ -340,6 +340,7 @@ static int max8660_pdata_from_dt(struct device *dev, rmatch[i].name = max8660_reg[i].name; matched = of_regulator_match(dev, np, rmatch, ARRAY_SIZE(rmatch)); + of_node_put(np); if (matched <= 0) return matched;