From patchwork Tue Jul 8 16:53:17 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manish Badarkhe X-Patchwork-Id: 4506811 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 7A53A9F392 for ; Tue, 8 Jul 2014 16:53:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B5B6420259 for ; Tue, 8 Jul 2014 16:53:57 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 3E2D92021F for ; Tue, 8 Jul 2014 16:53:56 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 45981261A3D; Tue, 8 Jul 2014 18:53:55 +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_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, 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 018B32619FF; Tue, 8 Jul 2014 18:53:44 +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 7DFE6261A06; Tue, 8 Jul 2014 18:53:42 +0200 (CEST) Received: from mail-pa0-f52.google.com (mail-pa0-f52.google.com [209.85.220.52]) by alsa0.perex.cz (Postfix) with ESMTP id 3E5812619FB for ; Tue, 8 Jul 2014 18:53:34 +0200 (CEST) Received: by mail-pa0-f52.google.com with SMTP id eu11so7545614pac.25 for ; Tue, 08 Jul 2014 09:53:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=7oBEiibpAKvVR2QbfK1R2PUe+EDK+fAFPL6sQZCJ+24=; b=owXUW2fz+7kVnGi8HAgFXRd8qICYBEO+nFYsAFJpmHlIh9vxYvOCmLfStVg0oYWmuu 6HfjdNJOSfTwlYIua2hURKKtOeiHTLIP+oNm4CYF5gvSR/+wY1RbeTPDinEcfx7TbYs3 AYnCFAcYnAMva2r0zdevBQuwxkgr7kyqgJA8p6Ve+uWmIyxGY5aF2qlVGZD3araXybm6 dxRT+zu/cxpkGZmRl/5WDEbjrNDTt94s5SfZjxBYTlX/I7zyog96nezuy6HNr4hQa9t2 J/Bp0E7kmp3pxLLB1YTb0t8emgwhedZAqY+3ZwXEGRjCAN3aYsfy596SGDcxpIfQMBEP sDJA== X-Received: by 10.69.15.2 with SMTP id fk2mr10441868pbd.123.1404838412790; Tue, 08 Jul 2014 09:53:32 -0700 (PDT) Received: from localhost.localdomain ([180.215.8.62]) by mx.google.com with ESMTPSA id rz4sm12581885pab.13.2014.07.08.09.53.25 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 08 Jul 2014 09:53:32 -0700 (PDT) From: Manish Badarkhe To: linux-omap@vger.kernel.org, alsa-devel@alsa-project.org Date: Tue, 8 Jul 2014 22:23:17 +0530 Message-Id: <1404838397-5309-1-git-send-email-badarkhe.manish@gmail.com> X-Mailer: git-send-email 1.7.10.4 Cc: peter.ujfalusi@ti.com, badarkhe.manish@gmail.com, broonie@kernel.org Subject: [alsa-devel] [PATCH V2] ASoC: omap-dmic: Use devm_snd_soc_register_component 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 Replaced snd_soc_register_component with its devres equivalent, devm_snd_soc_register_component. Signed-off-by: Manish Badarkhe Acked-by: Peter Ujfalusi --- Changes since V1: Aligned function parameter properly. :100644 100644 6925d71... f125eb9... M sound/soc/omap/omap-dmic.c sound/soc/omap/omap-dmic.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sound/soc/omap/omap-dmic.c b/sound/soc/omap/omap-dmic.c index 6925d71..f125eb9 100644 --- a/sound/soc/omap/omap-dmic.c +++ b/sound/soc/omap/omap-dmic.c @@ -490,8 +490,9 @@ static int asoc_dmic_probe(struct platform_device *pdev) } - ret = snd_soc_register_component(&pdev->dev, &omap_dmic_component, - &omap_dmic_dai, 1); + ret = devm_snd_soc_register_component(&pdev->dev, + &omap_dmic_component, + &omap_dmic_dai, 1); if (ret) goto err_put_clk; @@ -510,7 +511,6 @@ static int asoc_dmic_remove(struct platform_device *pdev) { struct omap_dmic *dmic = platform_get_drvdata(pdev); - snd_soc_unregister_component(&pdev->dev); clk_put(dmic->fclk); return 0;