From patchwork Mon Sep 10 14:22:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 146319 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp2552371ljw; Mon, 10 Sep 2018 07:22:15 -0700 (PDT) X-Google-Smtp-Source: ANB0Vda3VYFjR5Og2FYTk72TOaD0YkoC52ML8nLkzWxxmhfuA1jHtzpGunJc1IIV2IzDh+st5tRw X-Received: by 2002:adf:9081:: with SMTP id i1-v6mr15978457wri.271.1536589335856; Mon, 10 Sep 2018 07:22:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536589335; cv=none; d=google.com; s=arc-20160816; b=kQ1d+OmFstbEAy6t9mnIC9mZdXzHY9jIoGh1V8Dh358/x1p6PAegxrXkAXY9PNQGGz 4KDA5Ub/NbxqXVcwheTMFOf1BaLIJgawEUkjM0H79BxD5Yx4Vl8MVkz3IB0Swm0R9akE bPMW2RX97nNOUHIZKU+eKMdRsqDH0to4UrR0EqVZuwqkMKj+JN/4shYuJ817337jFStD k7sNuSjQ2PwO9wtwdS1URW6OL1JsI1ojFmEC/74d5F5iIwYtquaudMnu1vqF8O5aTabM +dyswSeJ1np6xeidekCEivHUixgmDuH+KLEcnH0CT7KSbgD9XBDX0T/3C9//LqVSrjW8 gmgA== 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=93rawMZo194AF7+d3ApKGn3P9pY96zJNNGTH4kp3YFE=; b=M2YKOJ3Yt8Xt3PWAiHXYFVTNaf+oiBsaxeusRJWpy0hU4/Cm4DAd9eX3dRnHlGI/VN s1QDa3TKrSKddqEXNi8+3d7/DhQMxAtQmXL358ETVulAwA8cimTcf+rqpXVfefIIfHm0 gF6UCEINE2zwa3yo5gmNqkGZc6SKop9HlMbo6XgKdz18jKQaE6JGsgYBCtpad/4dVXl+ GSnSWabQwTTlIfekMPU0niY7C/uVswcAoIW23w8DfEiy7LEd908/u33Yv2jgCVgLfNwd QByL0EFICtfrOUmi8Ggcsg3Wj+57FguS2LILtP23zN4Zt0/21unhx2A0z4HhtBGcIIX+ fEqQ== 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=wWoPDnw0; 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 v14-v6si15100205wrt.69.2018.09.10.07.22.15; Mon, 10 Sep 2018 07:22:15 -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=wWoPDnw0; 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 D45C62678AB; Mon, 10 Sep 2018 16:22:14 +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 EBD942678AB; Mon, 10 Sep 2018 16:22:11 +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 87DD22678B3 for ; Mon, 10 Sep 2018 16:22:09 +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=q0oKkCA218iCRMX6gNfdPrHhToz+NZ5eDt5I0LQGSac=; b=wWoPDnw09LSV 8ZFgn0NdUcjehQyDH8idhxKpFYSjWX6nxH4Wi2fjMsBW3LXyCaWxXgJwBQVjje6sD0Pp8cGy9Jy8+ Qef2f6iQxdOKFqDHHsPsQ9shzdI/pG9UYU3Hfk1F32OBvSY0fEiEViYeguY7vQBpwmCuDQaHDRhgJ hSbr8=; 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 1fzN4r-00024P-CL; Mon, 10 Sep 2018 14:22:09 +0000 Received: by debutante.sirena.org.uk (Postfix, from userid 1000) id 209BF1122D51; Mon, 10 Sep 2018 15:22:09 +0100 (BST) From: Mark Brown To: Kuninori Morimoto In-Reply-To: <87lg8erutg.wl-kuninori.morimoto.gx@renesas.com> Message-Id: <20180910142209.209BF1122D51@debutante.sirena.org.uk> Date: Mon, 10 Sep 2018 15:22:09 +0100 (BST) Cc: alsa-devel@alsa-project.org, Mark Brown Subject: [alsa-devel] Applied "ASoC: hdac_hda: 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: hdac_hda: 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 10ccaa39d7628470a3de4aae9d2346a55cbee46e Mon Sep 17 00:00:00 2001 From: Kuninori Morimoto Date: Fri, 7 Sep 2018 01:01:19 +0000 Subject: [PATCH] ASoC: hdac_hda: 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/codecs/hdac_hda.c | 3 +-- 1 file changed, 1 insertion(+), 2 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/codecs/hdac_hda.c b/sound/soc/codecs/hdac_hda.c index 8c25a1332fa7..2aaa83028e55 100644 --- a/sound/soc/codecs/hdac_hda.c +++ b/sound/soc/codecs/hdac_hda.c @@ -448,7 +448,7 @@ static int hdac_hda_dev_probe(struct hdac_device *hdev) return -ENOMEM; /* ASoC specific initialization */ - ret = snd_soc_register_component(&hdev->dev, + ret = devm_snd_soc_register_component(&hdev->dev, &hdac_hda_codec, hdac_hda_dais, ARRAY_SIZE(hdac_hda_dais)); if (ret < 0) { @@ -464,7 +464,6 @@ static int hdac_hda_dev_probe(struct hdac_device *hdev) static int hdac_hda_dev_remove(struct hdac_device *hdev) { - snd_soc_unregister_component(&hdev->dev); return 0; }