From patchwork Fri Jun 20 09:11: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: 4387471 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 6A18BBEEAA for ; Fri, 20 Jun 2014 09:15:45 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9F4862038C for ; Fri, 20 Jun 2014 09:15:44 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 3B7DA20306 for ; Fri, 20 Jun 2014 09:15:43 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id E929C264F0A; Fri, 20 Jun 2014 11:15:41 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id E5E71261A68; Fri, 20 Jun 2014 11:15:26 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id A4D2B261A95; Fri, 20 Jun 2014 11:15:19 +0200 (CEST) Received: from mail-pd0-f179.google.com (mail-pd0-f179.google.com [209.85.192.179]) by alsa0.perex.cz (Postfix) with ESMTP id 442DF261A50 for ; Fri, 20 Jun 2014 11:15:08 +0200 (CEST) Received: by mail-pd0-f179.google.com with SMTP id w10so2773203pde.24 for ; Fri, 20 Jun 2014 02:15:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id; bh=p3e69OtionUph1Xjh0FecNvzc0XDU0tDKzfhtsazfkA=; b=aRn9cHv5IRkc4Ea6ifJC3KkChzGoEkcI1YauXcZURz+8W6tDQFcz5+E0MKritUh092 qgNM+1pX13DP8HbZ2o7ls82Po5h0GJ6BGAmq1VUb8eOzakHfwqBrBjD3XAqNRuQYXKPT AUhLUJtvPAnLB3YbCAChDXby3UGOzvTrb/+TsjcOuZJJAxJQWLhgSiNpZUmoiAj11yQN er056XfUH6ey44nhmS04NlqVSLeyY9x15rAZEPCcu84AbxxIM3te+AvL3CH1b3iqA30B gJEV1r6cjUo5+r+x90TBrEUvQYI6MhL/xsfuDrwe1fEfkP4WJqbyyjlt9+j3+6lWrPs0 WSrA== X-Received: by 10.68.143.231 with SMTP id sh7mr2855494pbb.7.1403255706806; Fri, 20 Jun 2014 02:15:06 -0700 (PDT) Received: from linaro.sisodomain.com ([14.140.216.146]) by mx.google.com with ESMTPSA id yv7sm40383582pac.33.2014.06.20.02.15.02 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 20 Jun 2014 02:15:05 -0700 (PDT) From: Sachin Kamat To: alsa-devel@alsa-project.org Date: Fri, 20 Jun 2014 14:41:58 +0530 Message-Id: <1403255518-30011-1-git-send-email-sachin.kamat@samsung.com> X-Mailer: git-send-email 1.7.9.5 Cc: tiwai@suse.de, s.hauer@pengutronix.de, broonie@kernel.org, spk.linux@gmail.com, lgirdwood@gmail.com Subject: [alsa-devel] [PATCH Resend 1/1] ASoC: mc13783: Add missing of_node_put X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP of_get_child_by_name expects of_node_put be called when done. Signed-off-by: Sachin Kamat --- sound/soc/codecs/mc13783.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/mc13783.c b/sound/soc/codecs/mc13783.c index 9965277b595a..388f90a597fa 100644 --- a/sound/soc/codecs/mc13783.c +++ b/sound/soc/codecs/mc13783.c @@ -766,11 +766,11 @@ static int __init mc13783_codec_probe(struct platform_device *pdev) ret = of_property_read_u32(np, "adc-port", &priv->adc_ssi_port); if (ret) - return ret; + goto out; ret = of_property_read_u32(np, "dac-port", &priv->dac_ssi_port); if (ret) - return ret; + goto out; } dev_set_drvdata(&pdev->dev, priv); @@ -783,6 +783,8 @@ static int __init mc13783_codec_probe(struct platform_device *pdev) ret = snd_soc_register_codec(&pdev->dev, &soc_codec_dev_mc13783, mc13783_dai_async, ARRAY_SIZE(mc13783_dai_async)); +out: + of_node_put(np); return ret; }