Message ID | 1392627817-26957-4-git-send-email-sachin.kamat@linaro.org |
---|---|
State | Accepted |
Headers | show
Return-Path: <patchwork-forward+bncBDM5LUP2XEPRBVNDQ6MAKGQEQLISPGQ@linaro.org> 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 9EF9F202B2 for <linaro@patches.linaro.org>; Mon, 17 Feb 2014 09:09:42 +0000 (UTC) Received: by mail-ob0-f197.google.com with SMTP id gq1sf57874192obb.8 for <linaro@patches.linaro.org>; Mon, 17 Feb 2014 01:09:41 -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=ADYsja294yoLKuBJ7pnf8qj73W8Pc+/8LdCMMUcj+oA=; b=jwpm3sHYITmKlYHIygXc4o1ffD+mENaBR2PE3JnX355+qRFytxsfo60WHOC1dOqR46 mNrMxqgAsVgDAQv+hCyeRB4kR4VU/ufyJoIP2BUKKByUiOtvqGW5lB9WAUkDoKvVnCG8 5hbo6SkCpL99J/RvZe7hO1MvPLhQ673dDu4fl9bfXzIoY1odBLB+Yk1f6J1x1iFmJ/F3 Bc39rUEH19VQqc7JX3JEEkj54sZMvZYbeIuH4hOMhJVPXSsbBUJZLyW/p+8THTZKeaLI IOFpEa2/pguS6N+jVWBy0pK+LFOFpMgJ5OMqZ18T9IY7t4nPTbh20C8hd3EQE9Nvh8Lz 3pjw== X-Gm-Message-State: ALoCoQmeTRi0zG9qiNOS5g8FnlYZpNUzl+mkUAGX8Lj7oWKPPvbzlb/M62jmdO9+Q7srcKU+wCDn X-Received: by 10.43.78.135 with SMTP id zm7mr8948514icb.27.1392628181730; Mon, 17 Feb 2014 01:09:41 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.100.146 with SMTP id s18ls785055qge.8.gmail; Mon, 17 Feb 2014 01:09:41 -0800 (PST) X-Received: by 10.220.161.132 with SMTP id r4mr4272331vcx.29.1392628181633; Mon, 17 Feb 2014 01:09:41 -0800 (PST) Received: from mail-ve0-f176.google.com (mail-ve0-f176.google.com [209.85.128.176]) by mx.google.com with ESMTPS id kl10si4322720vdb.142.2014.02.17.01.09.41 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 17 Feb 2014 01:09:41 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.176 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.176; Received: by mail-ve0-f176.google.com with SMTP id jx11so4506372veb.7 for <patchwork-forward@linaro.org>; Mon, 17 Feb 2014 01:09:41 -0800 (PST) X-Received: by 10.53.0.230 with SMTP id bb6mr587658vdd.39.1392628181509; Mon, 17 Feb 2014 01:09:41 -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 u4csp122713vcz; Mon, 17 Feb 2014 01:09:41 -0800 (PST) X-Received: by 10.68.143.231 with SMTP id sh7mr25494802pbb.7.1392628180694; Mon, 17 Feb 2014 01:09:40 -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 S1752314AbaBQJJN (ORCPT <rfc822;linus.walleij@linaro.org> + 27 others); Mon, 17 Feb 2014 04:09:13 -0500 Received: from mail-pa0-f46.google.com ([209.85.220.46]:45091 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752127AbaBQJJK (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 17 Feb 2014 04:09:10 -0500 Received: by mail-pa0-f46.google.com with SMTP id rd3so15124724pab.33 for <linux-kernel@vger.kernel.org>; Mon, 17 Feb 2014 01:09:10 -0800 (PST) X-Received: by 10.68.189.100 with SMTP id gh4mr24948257pbc.21.1392628150144; Mon, 17 Feb 2014 01:09:10 -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.07 for <multiple recipients> (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 17 Feb 2014 01:09:09 -0800 (PST) From: Sachin Kamat <sachin.kamat@linaro.org> To: linux-kernel@vger.kernel.org Cc: broonie@kernel.org, lgirdwood@gmail.com, sachin.kamat@linaro.org Subject: [PATCH 4/9] regulator: max77686: Add missing of_node_put Date: Mon, 17 Feb 2014 14:33:32 +0530 Message-Id: <1392627817-26957-4-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: <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.128.176 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/max77686.c b/drivers/regulator/max77686.c index 0e725f6ed455..b411af00065d 100644 --- a/drivers/regulator/max77686.c +++ b/drivers/regulator/max77686.c @@ -412,6 +412,7 @@ static int max77686_pmic_dt_parse_pdata(struct platform_device *pdev, if (!rdata) { dev_err(&pdev->dev, "could not allocate memory for regulator data\n"); + of_node_put(regulators_np); return -ENOMEM; } @@ -425,6 +426,7 @@ static int max77686_pmic_dt_parse_pdata(struct platform_device *pdev, } pdata->regulators = rdata; + of_node_put(regulators_np); return 0; }
Add of_node_put to decrement the ref count. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> --- drivers/regulator/max77686.c | 2 ++ 1 file changed, 2 insertions(+)