From patchwork Mon Sep 10 14:21:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 146315 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp2551749ljw; Mon, 10 Sep 2018 07:21:40 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYrQEisKuvYWpfjjnlFpYcW1cJOgW8f6MJJ05I+fhrTgIBSSRGB9lU+NF4PSwp7PvZFNwrL X-Received: by 2002:a1c:908b:: with SMTP id s133-v6mr858991wmd.69.1536589300309; Mon, 10 Sep 2018 07:21:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536589300; cv=none; d=google.com; s=arc-20160816; b=ebdgr0WBVa0v4l7noRLiVMH5qKLc+hC3TBU0CvFqdQfGLZCGEMXzw2TEKAUOaqakPQ M/5w8cDACGAMqNZLhD5Ym4RTaBhgCOKET/YJR/CrXAoZxrdh3gQsb4wds4Vzk6C8FGsr APx6Nsc5cuKPk+d7nzSUTkONwRVaYzEl4KV8JI29/Y81le5J/HcoCG/DBLzr1U+qQA6B 7Hm5S2pc2A+lVheMJ6KLaCczCMZolXqRwEyBbBWPdBgCENxtdXhPDDeChjo8MwA928IF 4VKv3AkjE7AcPhl3V8rLIwvV4KAtVpcMAzbbv2xWk8sDn9Ys3BOCQH8oF+CvqkVli7/0 KJkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:date:message-id:in-reply-to:to:from :dkim-signature:delivered-to; bh=reLNB/FMTlkIytSeGiNnyvQTc2Q0pQvIogCFmFelvLs=; b=sndqWjNJrp+hCFMzPNpVk/FWJ3eAisgcOfHx6sXfGLLTr34asDJTJK2uML3qjlm7UB 2VtTS1VpLY2fN7iVoB7LWdmj3iPrrFSxNlFFlRCORlYO+tjQk1UcaowWsujFV40KNzqS IwAO32cR2WXLPXbQw82GpYd3ciWEZ+nw4WInH/6d7JEf0mV/rQ3dbd8NlUrWyOCTQiGz U3BTj0BsY66jWIqgxqp12UCg/qayFGdEMw1Aj5X9A7kMpZDaKq58AzRP4k4QOQ1wh26u MDqqSSFxXMJ2fXWhcFSU5qp3XUHjkxuZoqed2ixxixNnaO3q80sWqPuI9A3RG8fBey90 suiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=R5UiD1o1; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTP id x9-v6si15079409wrx.283.2018.09.10.07.21.40; Mon, 10 Sep 2018 07:21:40 -0700 (PDT) Received-SPF: pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) client-ip=77.48.224.243; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=R5UiD1o1; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 7D2C826789F; Mon, 10 Sep 2018 16:21:36 +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 11C2626788E; Mon, 10 Sep 2018 16:21:34 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail1.perex.cz X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=disabled version=3.4.0 Received: from heliosphere.sirena.org.uk (heliosphere.sirena.org.uk [172.104.155.198]) by alsa0.perex.cz (Postfix) with ESMTP id 5AD90267803 for ; Mon, 10 Sep 2018 16:21:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Date:Message-Id:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner: List-Archive; bh=gxE3ztk/1Ggr8yr9bWVMI5EpFcmjOm5itCGN7CTm+Ig=; b=R5UiD1o1nCRp W53DRDSWk6mC8MQFgQzwOvMQVEE4o/eS+mDC0OSLFE7dtZD+bNKwwiKxRaW+ld9Ck2r7W7vnLxnDe SZEVHq5+Emb8j3Ab3IvKSPoJoOU1iMp2lrpadcGka9J4RcB9HWzKuhTzdCYB8OB9xRvEz3Ke+Ob0a IDtKc=; Received: from cpc102320-sgyl38-2-0-cust46.18-2.cable.virginm.net ([82.37.168.47] helo=debutante.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpa (Exim 4.89) (envelope-from ) id 1fzN4G-000241-6B; Mon, 10 Sep 2018 14:21:32 +0000 Received: by debutante.sirena.org.uk (Postfix, from userid 1000) id E0EAC1122D51; Mon, 10 Sep 2018 15:21:31 +0100 (BST) From: Mark Brown To: Kuninori Morimoto In-Reply-To: <87d0tqruqu.wl-kuninori.morimoto.gx@renesas.com> Message-Id: <20180910142131.E0EAC1122D51@debutante.sirena.org.uk> Date: Mon, 10 Sep 2018 15:21:31 +0100 (BST) Cc: alsa-devel@alsa-project.org, Mark Brown Subject: [alsa-devel] Applied "ASoC: omap: use devm_snd_soc_register_component()" to the asoc tree 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 The patch ASoC: omap: use devm_snd_soc_register_component() has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark >From 642a722d3116fbd22e59ac027f81b5ecd285f17c Mon Sep 17 00:00:00 2001 From: Kuninori Morimoto Date: Fri, 7 Sep 2018 01:02:54 +0000 Subject: [PATCH] ASoC: omap: use devm_snd_soc_register_component() Now we have devm_snd_soc_register_component(). Let's use it instead of snd_soc_register_component(). Signed-off-by: Kuninori Morimoto Signed-off-by: Mark Brown --- sound/soc/omap/omap-hdmi-audio.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) -- 2.19.0.rc1 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel diff --git a/sound/soc/omap/omap-hdmi-audio.c b/sound/soc/omap/omap-hdmi-audio.c index 8a99a8837dc9..673a9eb153b2 100644 --- a/sound/soc/omap/omap-hdmi-audio.c +++ b/sound/soc/omap/omap-hdmi-audio.c @@ -348,7 +348,7 @@ static int omap_hdmi_audio_probe(struct platform_device *pdev) default: return -EINVAL; } - ret = snd_soc_register_component(ad->dssdev, &omap_hdmi_component, + ret = devm_snd_soc_register_component(ad->dssdev, &omap_hdmi_component, dai_drv, 1); if (ret) return ret; @@ -383,7 +383,6 @@ static int omap_hdmi_audio_probe(struct platform_device *pdev) ret = snd_soc_register_card(card); if (ret) { dev_err(dev, "snd_soc_register_card failed (%d)\n", ret); - snd_soc_unregister_component(ad->dssdev); return ret; } @@ -400,7 +399,6 @@ static int omap_hdmi_audio_remove(struct platform_device *pdev) struct hdmi_audio_data *ad = platform_get_drvdata(pdev); snd_soc_unregister_card(ad->card); - snd_soc_unregister_component(ad->dssdev); return 0; }