From patchwork Sat Jul 5 05:09:39 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manish Badarkhe X-Patchwork-Id: 4486331 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 31090BEEAA for ; Sat, 5 Jul 2014 05:10:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 65E422039D for ; Sat, 5 Jul 2014 05:10:18 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id D3466202E9 for ; Sat, 5 Jul 2014 05:10:16 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 2CC49265A48; Sat, 5 Jul 2014 07:10:13 +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 D28FF26553A; Sat, 5 Jul 2014 07:10:02 +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 BC03126553F; Sat, 5 Jul 2014 07:10:00 +0200 (CEST) Received: from mail-pd0-f178.google.com (mail-pd0-f178.google.com [209.85.192.178]) by alsa0.perex.cz (Postfix) with ESMTP id 72B3B265536 for ; Sat, 5 Jul 2014 07:09:52 +0200 (CEST) Received: by mail-pd0-f178.google.com with SMTP id r10so2742999pdi.9 for ; Fri, 04 Jul 2014 22:09:49 -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=TenP4WBfUyDmV/fDGzAAwYUry5l1Q2xRRDjUudL7a+g=; b=nBI/Wc7OQ8rlwMZ3F597XdQMA7bPICmNh/L4NiZRjaLMsvX85ALvrfltozbVnE5fnI Gm0sfB61sBA3tuaAwO258tmYaiBh+12RCzI1/K8uhlhUFtYxHQD8Yd6P4AVsKRmaPz6W GcABVXAIrgROekyz09f9A03yUaOm5s9JhXJ7LabzuSPR2Mab88HJtImiQUBYC9pfsXfX gOM5S1pmRp+sehvqHtnM4WzPfsPFrCKmmGG4x3Ok0mg8dsU+RWLbn0AWdvQvRDu95Bos LLeY/J0w7jgniod504/+uRj1DY+a6Ny2J+959mCZYbW+tEPFDkHtCN+vkThAHwBg/OAi 7EMw== X-Received: by 10.67.4.198 with SMTP id cg6mr14939189pad.29.1404536988421; Fri, 04 Jul 2014 22:09:48 -0700 (PDT) Received: from localhost.localdomain ([180.215.13.156]) by mx.google.com with ESMTPSA id tr2sm162844678pab.26.2014.07.04.22.09.45 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 04 Jul 2014 22:09:47 -0700 (PDT) From: Manish Badarkhe To: linux-omap@vger.kernel.org, alsa-devel@alsa-project.org Date: Sat, 5 Jul 2014 10:39:39 +0530 Message-Id: <1404536979-5318-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] ASoC: omap-mcbsp: 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 --- :100644 100644 efe2cd6... bfc8f8e... M sound/soc/omap/omap-mcbsp.c sound/soc/omap/omap-mcbsp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sound/soc/omap/omap-mcbsp.c b/sound/soc/omap/omap-mcbsp.c index efe2cd6..bfc8f8e 100644 --- a/sound/soc/omap/omap-mcbsp.c +++ b/sound/soc/omap/omap-mcbsp.c @@ -805,7 +805,7 @@ static int asoc_mcbsp_probe(struct platform_device *pdev) if (ret) return ret; - ret = snd_soc_register_component(&pdev->dev, &omap_mcbsp_component, + ret = devm_snd_soc_register_component(&pdev->dev, &omap_mcbsp_component, &omap_mcbsp_dai, 1); if (ret) return ret; @@ -817,8 +817,6 @@ static int asoc_mcbsp_remove(struct platform_device *pdev) { struct omap_mcbsp *mcbsp = platform_get_drvdata(pdev); - snd_soc_unregister_component(&pdev->dev); - if (mcbsp->pdata->ops && mcbsp->pdata->ops->free) mcbsp->pdata->ops->free(mcbsp->id);