From patchwork Sun Jul 6 06:50:14 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manish Badarkhe X-Patchwork-Id: 4489381 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 C05A39F26C for ; Sun, 6 Jul 2014 06:51:10 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D615520263 for ; Sun, 6 Jul 2014 06:51:09 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id B111320222 for ; Sun, 6 Jul 2014 06:51:08 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 9075B26557A; Sun, 6 Jul 2014 08:51:07 +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 0952C26509D; Sun, 6 Jul 2014 08:50:59 +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 85D6C2651B4; Sun, 6 Jul 2014 08:50:57 +0200 (CEST) Received: from mail-pa0-f43.google.com (mail-pa0-f43.google.com [209.85.220.43]) by alsa0.perex.cz (Postfix) with ESMTP id B621F2651A5 for ; Sun, 6 Jul 2014 08:50:43 +0200 (CEST) Received: by mail-pa0-f43.google.com with SMTP id lf10so3789005pab.16 for ; Sat, 05 Jul 2014 23:50:40 -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=QZHuqWn/ba9YQrodGI3qN+ddueTx+ss1cAnjT8W8o+4=; b=TfbVjXMggmsuEPhw6/huDuBK/2LHRyCB1G98hPtPeaEEgw0FBo20zuNUMCggoG6/LN 1FC2BreItbqUdnsgqHhTPREb+N8rqq640nKoJDFHmIBFikQ2ZJiy9TjPA41U0fjoP4gi apYcBkEVJReyQ8l5CW/TlZ66raewG9IHsTSh3zIyNN6Rs6+X0aEjnFARYEH33yhB2fYL hnH7pBN3YvMM9W+X/vkHRd2BB1L8Br+jb9Yn6akV6Naa79YJMS6ew9mI1BV8EecuiNgc uR2LjIan1MN2XucvrDiwhxK2xRhlPbaOPJxuvo0zdNS+9qLVtMebItFZuP8OxHxLf6H9 Wapw== X-Received: by 10.70.43.3 with SMTP id s3mr20526058pdl.11.1404629440385; Sat, 05 Jul 2014 23:50:40 -0700 (PDT) Received: from localhost.localdomain ([116.202.106.189]) by mx.google.com with ESMTPSA id gd7sm175713308pac.34.2014.07.05.23.50.36 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 05 Jul 2014 23:50:39 -0700 (PDT) From: Manish Badarkhe To: linux-omap@vger.kernel.org, alsa-devel@alsa-project.org Date: Sun, 6 Jul 2014 12:20:14 +0530 Message-Id: <1404629414-3263-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-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 --- :100644 100644 6925d71... 011e30e... M sound/soc/omap/omap-dmic.c sound/soc/omap/omap-dmic.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sound/soc/omap/omap-dmic.c b/sound/soc/omap/omap-dmic.c index 6925d71..011e30e 100644 --- a/sound/soc/omap/omap-dmic.c +++ b/sound/soc/omap/omap-dmic.c @@ -490,7 +490,7 @@ static int asoc_dmic_probe(struct platform_device *pdev) } - ret = snd_soc_register_component(&pdev->dev, &omap_dmic_component, + ret = devm_snd_soc_register_component(&pdev->dev, &omap_dmic_component, &omap_dmic_dai, 1); if (ret) goto err_put_clk; @@ -510,7 +510,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;