From patchwork Sun Jul 6 06:49:43 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manish Badarkhe X-Patchwork-Id: 4489361 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 08ED8BEEAA for ; Sun, 6 Jul 2014 06:50:25 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 31CA820263 for ; Sun, 6 Jul 2014 06:50:24 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id BFCBD20222 for ; Sun, 6 Jul 2014 06:50:22 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 5A4372651AA; Sun, 6 Jul 2014 08:50:20 +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 4EAFE265055; Sun, 6 Jul 2014 08:50:09 +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 7731F26509D; Sun, 6 Jul 2014 08:50:07 +0200 (CEST) Received: from mail-pa0-f50.google.com (mail-pa0-f50.google.com [209.85.220.50]) by alsa0.perex.cz (Postfix) with ESMTP id 3AFD3265044 for ; Sun, 6 Jul 2014 08:49:59 +0200 (CEST) Received: by mail-pa0-f50.google.com with SMTP id bj1so3741054pad.23 for ; Sat, 05 Jul 2014 23:49:57 -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=KKWk8hFcf6ba006jEo7MFO8ytt2Ac+5nwYzyRlRDw3Q=; b=YndMek4rVxkiPc3J7iDi4Mbq8vnJA/QBjPeI3WkjpdHowW79dujsTIvHUmox7eHynK XCu3QCJUMgs14WJhb+p2h1vm2P2KTevk2jK281+Qdd89ANqxJ6TT3ohAnlbG27+WvRt5 fWjeIR+0LZM2hGCu/pXIsqavFtDY02zFlEjOT7rSXAnwAjnAxwou/6kYLGV/zrky4xM/ dUhG64wnW298cvmTbpD8bgCsEP9ieBn2C2egvejgcrEAkE6daZUni1RAkwQLDkVTUiVb TZIaljIeB4wgrahgG6jF/eAF73QCmeuymJLW31h3He92adZDEXOOreMHmwxqepoWjM/a 1A+A== X-Received: by 10.66.132.36 with SMTP id or4mr21177117pab.42.1404629397531; Sat, 05 Jul 2014 23:49:57 -0700 (PDT) Received: from localhost.localdomain ([116.202.106.189]) by mx.google.com with ESMTPSA id uv5sm48889811pbc.52.2014.07.05.23.49.53 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 05 Jul 2014 23:49:57 -0700 (PDT) From: Manish Badarkhe To: linux-omap@vger.kernel.org, alsa-devel@alsa-project.org Date: Sun, 6 Jul 2014 12:19:43 +0530 Message-Id: <1404629383-3225-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-hdmi: 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 eb9c392... 1dc95b5... M sound/soc/omap/omap-hdmi.c sound/soc/omap/omap-hdmi.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sound/soc/omap/omap-hdmi.c b/sound/soc/omap/omap-hdmi.c index eb9c392..1dc95b5 100644 --- a/sound/soc/omap/omap-hdmi.c +++ b/sound/soc/omap/omap-hdmi.c @@ -322,7 +322,7 @@ static int omap_hdmi_probe(struct platform_device *pdev) } dev_set_drvdata(&pdev->dev, hdmi_data); - ret = snd_soc_register_component(&pdev->dev, &omap_hdmi_component, + ret = devm_snd_soc_register_component(&pdev->dev, &omap_hdmi_component, &omap_hdmi_dai, 1); if (ret) @@ -335,8 +335,6 @@ static int omap_hdmi_remove(struct platform_device *pdev) { struct hdmi_priv *hdmi_data = dev_get_drvdata(&pdev->dev); - snd_soc_unregister_component(&pdev->dev); - if (hdmi_data == NULL) { dev_err(&pdev->dev, "cannot obtain HDMi data\n"); return -ENODEV;