From patchwork Tue Sep 11 11:20:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 146440 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp3519710ljw; Tue, 11 Sep 2018 04:20:51 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYS8CIMuLcX3VHtVeoJV1vH7KSln8gnX7Kl3zdRRYHhvl3pugpW80cCJ0WTvxAK6oyOYM1B X-Received: by 2002:adf:9e93:: with SMTP id a19-v6mr18688632wrf.70.1536664851700; Tue, 11 Sep 2018 04:20:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536664851; cv=none; d=google.com; s=arc-20160816; b=iBfI+zOyLoLL/FaxFq10a62WengeXCLaFl1Sdrz4xWngqgGtv1BhlhWl4J7lweXb+F YsgmIKs403xpA7c620oO3lBdiCVcBV4/FhoQla93sQatYPJZgfMTk322S0KbRfxZrnvJ 9Cq3fdFIlwn9Gfzps3iNvGsjeoLbRDM0qRJvpkQMmQySoVKhY7uItUaBI8b1LvaxRJ+Z QquobIVAZnJhynrjJ7CTQx+HYp0f8LwMVUOj6pAPM12mcZgBKKLvhWlpOW02VsR4vDxq OoYAB1io5+z0S8mwCSX9P7JkEISJ4GYCayKsZKRMDi9rBWrUe7vTrqujMHXoeGjquChz mg2A== 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=SVI5QOyCVtks63VG0iumX9O9ULDFsztn0HBSytP8Yb0=; b=QMBaxzmdEvd0JEtzgCZnOI3dLl5gISk6bdbQ0J/SJguqxk4Ef+QNtRqDAvEAuboU94 WgCMDLB/Hsly2CViMMaNnEpW5SVDcgwCVIWIOLVUmnEADB7kNTW+YYtyUkQhaI5fmY1N hhl5SmuBWFa8RCNwrVXLDoX3Adt8xaiYc6vh2yikmsgD3dYWZ+CBss/CVZfOn5aISR4t ZmuProimIHBhdcOVQJIhJsROfUqrxYFnSsqf3y4/BY6N6Q/96RFei096Hjn6jeffUmQ4 10FtcbnwEuA+6dM7p1/ujRZCyoeQ+K5YnoKDoVlrtoK6/npboczaxvUW/umSwE906ovM SLXQ== 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=UAVH52KS; 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 f132-v6si544046wmd.171.2018.09.11.04.20.51; Tue, 11 Sep 2018 04:20:51 -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=UAVH52KS; 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 EDA6526781A; Tue, 11 Sep 2018 13:20:49 +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 7912826781E; Tue, 11 Sep 2018 13:20:47 +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 C3375267795 for ; Tue, 11 Sep 2018 13:20:45 +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=PMoRzi2bDHwXmxDFpE4Q6a5NpLpt0KPDXD6vqOF7UTY=; b=UAVH52KSgrkZ inCj3JGX1j+njZHmWfxqTwz8Sdn1lTalFnIFAnb1bSjQR42PowQVaGuQ6aUAXbnEeDmM3Z2GK9MmP 6ZRkAxJw+lZFVpDckVcVLGhZ6K4BNa+58DAA1FtndGvrS85WfSv/WshQxuHIf2pM6cDfgGbqOKY0S L4rXg=; 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 1fzgir-0004li-KH; Tue, 11 Sep 2018 11:20:45 +0000 Received: by debutante.sirena.org.uk (Postfix, from userid 1000) id 5903C1121AF8; Tue, 11 Sep 2018 12:20:45 +0100 (BST) From: Mark Brown To: Kuninori Morimoto In-Reply-To: Message-Id: <20180911112045.5903C1121AF8@debutante.sirena.org.uk> Date: Tue, 11 Sep 2018 12:20:45 +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.rc2 _______________________________________________ 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; }