Received: by 10.213.65.68 with SMTP id h4csp1173978imn; Sun, 18 Mar 2018 18:05:52 -0700 (PDT) X-Google-Smtp-Source: AG47ELvRLoFNvurIZHwjJrJCEVqmW39/iflkJKGCWyPvX72r2LQODK1309UfAFVKXj+V7OByrI7g X-Received: by 10.101.75.202 with SMTP id p10mr7784656pgr.339.1521421552436; Sun, 18 Mar 2018 18:05:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521421552; cv=none; d=google.com; s=arc-20160816; b=gIHrp4Rc9JO/62KxEJij029Z+cLvbeUL4ujGLv+WrY0I0yFKUHMoH69f4NEnrTBidt U9DVxSnTZsOf4AuYQwgUDOTDcjbQRbGYTWHXzFucqmaeXgRZmS/Ze7Btg5VI7PU2WmeB kZYm/hH4jG6GnEmya4ky6Ejyj0TBqbJta++wQoznuF8Rmw/2ozVbBAkJ5roLzNvCxgQT e4h0J1J+a8MGgeLdYe3wCo8bSS7UCAdyZPtvE790gCjeAL72kC/zfJFotGvH5mKGZ15i +9OPljqnhB7H4euIo/KbZ9Y1j0UcMf/SkdfdnLMu8r9fgrwnF28tcE3grvsPrTqpuZe9 /g4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:in-reply-to:subject:cc:to :from:dkim-signature:arc-authentication-results; bh=90ZH8LF0aQiCGqJY+P7qXlK3T+vwNWjD8XGICsHtDII=; b=t6tYovCSTq2BfCdalnFneAXKsFIZPY92guTWno28p2CIvy+j6jxO9wfz1uIDSgDNRr M4n2Z2qP9wX8kYblDU0gdYvmVfXIFFeZw+x03JfR8OlztL+YINn+yomnSZDzQr0aFb4J NvwJQQQvrnSgfrm5zBxAUbvrwKv2KUTkhHHf9Isl554nc8OnyCzuv6a9Qq8ECZQNWyj7 w7DPPdKAU842XLny4/fB577SlKxJSguHuSwjxcRS92EpJuWYnznZP8ArO/gQYWrjeLxA rYW2konEqcSQIpkBXMZAVV8+eMvedaqG7zwXKlBKITAVGycknJONxmUkWMwzd20aRvdU lu9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=rqvVA20P; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l15si2833572pgn.826.2018.03.18.18.05.38; Sun, 18 Mar 2018 18:05:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=rqvVA20P; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755115AbeCSBE0 (ORCPT + 99 others); Sun, 18 Mar 2018 21:04:26 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:50314 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755059AbeCSBEC (ORCPT ); Sun, 18 Mar 2018 21:04:02 -0400 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=90ZH8LF0aQiCGqJY+P7qXlK3T+vwNWjD8XGICsHtDII=; b=rqvVA20P4j9I Ha0Xy329Hl8py7L5vxoQv4usW/OjS7uWhb8AFtdz4sTIF86Iqy8y07Eqz39YbHkzyCzeMl7MmW/BV YDBq1QuyjgrvDrh/uTZerUb01VRZ4RSe3TZHqeEamY36gLHkctza0Zb9Bxfl/JOORM2Fx19u4aRHV ccbKw=; Received: from [218.255.99.6] (helo=finisterre.ee.mobilebroadband) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1exjCk-00066R-AD; Mon, 19 Mar 2018 01:03:14 +0000 Received: by finisterre.ee.mobilebroadband (Postfix, from userid 1000) id B5EED440079; Mon, 19 Mar 2018 01:03:11 +0000 (GMT) From: Mark Brown To: weiyongjun (A) Cc: Wei Yongjun , Mark Brown , Support Opensource , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , kernel-janitors@vger.kernel.org, alsa-devel@alsa-project.org, Wei Yongjun , linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org Subject: Applied "ASoC: da7210: Use devm_snd_soc_register_component()" to the asoc tree In-Reply-To: <1521185534-164511-1-git-send-email-weiyongjun1@huawei.com> Message-Id: <20180319010311.B5EED440079@finisterre.ee.mobilebroadband> Date: Mon, 19 Mar 2018 01:03:11 +0000 (GMT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch ASoC: da7210: 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 c0153b126cc6e14335b142a799c9aa8990e28669 Mon Sep 17 00:00:00 2001 From: "weiyongjun (A)" Date: Fri, 16 Mar 2018 07:32:14 +0000 Subject: [PATCH] ASoC: da7210: Use devm_snd_soc_register_component() Since the remove callback is removed, the snd_soc_unregister_component() is missing when remove device. Using devm_snd_soc_register_component() instead of snd_soc_register_component(). Fixes: d06f33aed85c ("ASoC: da7210: replace codec to component") Signed-off-by: Wei Yongjun Signed-off-by: Mark Brown --- sound/soc/codecs/da7210.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/da7210.c b/sound/soc/codecs/da7210.c index 07153be52c52..a664111b7184 100644 --- a/sound/soc/codecs/da7210.c +++ b/sound/soc/codecs/da7210.c @@ -1233,7 +1233,7 @@ static int da7210_i2c_probe(struct i2c_client *i2c, if (ret != 0) dev_warn(&i2c->dev, "Failed to apply regmap patch: %d\n", ret); - ret = snd_soc_register_component(&i2c->dev, + ret = devm_snd_soc_register_component(&i2c->dev, &soc_component_dev_da7210, &da7210_dai, 1); if (ret < 0) dev_err(&i2c->dev, "Failed to register component: %d\n", ret); -- 2.16.2