Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp943371imm; Fri, 22 Jun 2018 07:52:58 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIqI+HT9hq3X3AJAWcIzue4Nk6xMldnq4wYokOWOab7oQmVW096qYiB/KTUnzTE4loheR7C X-Received: by 2002:a17:902:24e:: with SMTP id 72-v6mr2019255plc.87.1529679177985; Fri, 22 Jun 2018 07:52:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529679177; cv=none; d=google.com; s=arc-20160816; b=qqxwY7WKUmxJWW31ZBehGtZ5vGbMMjuFt2VrntaM+XzMJeWabpegucM3kyvD1E5Am1 0WB1+nT4ntmfpyfEm6ZWOiSGiiZ4YwTuEW57hOd1kD6LXPN2bWwkrQpXPKGPy21qRXs/ OfCvdEQG7ZyzX6irdDy4ykrbpresy9cIZcEe0Je3VC+F3pOhxBPKjqyjBA2kuQLrjH8T swi5k5wiFEQkpKJLYVnany5CAqDrpVomhJSHMAWTFFkZ1i0r8yJY3mceV4+MGhunfPJ9 YGwes0Y90wFK3HrLQfk9iQZCc/Cs7YRnps+8NjR8J9G4v0SyauoyW8JVE8rq0/BtNt4z Shwg== 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=blwYHYrfT6AVeN7/WZwdD2FdmQe0nlI/qNjHvuvkbp4=; b=JxS9Yu0bIXG6SCpRS8N9A2Exdsi/yTn4E9MGLnd0gTL2B7qvIG2UkXo9DZwR3bG7At KmaHNglZKP61ypAWgckAKWB7ttvjF30iJht2Yz3CKveuVIYmnYKC85fzKl1FT/Bh2HZ+ lxAxKBex4KDwds6IwwLIxb5grgk69XygqGCpKLz/rWM06blGtt5XjL6FXHI1uCIfWO1V paz5cnDPqiOKqUX1VgjTyPHiycnaBwkT5J+nUYXH7QoajZGOxBogQ3B7oaHHhc2t6N4s kYAKl5GlVE7k7FSeMwnrWEilvuiu8bUVYxcD2/DCbkp6H+tFBeuMddQU9RIME0PsmRsO CfRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=gxShyDRO; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u2-v6si6272704pge.53.2018.06.22.07.52.44; Fri, 22 Jun 2018 07:52:57 -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=gxShyDRO; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933862AbeFVOuv (ORCPT + 99 others); Fri, 22 Jun 2018 10:50:51 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:33312 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933773AbeFVOuq (ORCPT ); Fri, 22 Jun 2018 10:50:46 -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=blwYHYrfT6AVeN7/WZwdD2FdmQe0nlI/qNjHvuvkbp4=; b=gxShyDROWTq6 Hspm3cqRZBgUsT879N2VmoPu4L5pGEVHTv6bagB3oKmrqzaHr9t5PLo6m0HKHDVn0QhKGUSRRPeBI SNeKAEr3dEtpVDeQtvsmlu8grypLTtTqWZuuLlllkQbwSf6QwS45+QSn9wF3Wd2qdg/cXnV2PXRWr l5hXM=; Received: from debutante.sirena.org.uk ([2001:470:1f1d:6b5::3] helo=debutante) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1fWNOX-0003v3-0L; Fri, 22 Jun 2018 14:50:37 +0000 Received: from broonie by debutante with local (Exim 4.91) (envelope-from ) id 1fWNOW-0002hz-IT; Fri, 22 Jun 2018 15:50:36 +0100 From: Mark Brown To: Wei Yongjun Cc: Mark Brown , Bard Liao , Oder Chiou , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , kernel-janitors@vger.kernel.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org Subject: Applied "ASoC: rt5682: use devm_snd_soc_register_component()" to the asoc tree In-Reply-To: <1529634204-105428-1-git-send-email-weiyongjun1@huawei.com> Message-Id: Date: Fri, 22 Jun 2018 15:50:36 +0100 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch ASoC: rt5682: 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 a98ec93d7e378db21a6cdbc6d55feaba9fb4b999 Mon Sep 17 00:00:00 2001 From: Wei Yongjun Date: Fri, 22 Jun 2018 02:23:24 +0000 Subject: [PATCH] ASoC: rt5682: use devm_snd_soc_register_component() Using devm_snd_soc_register_component() and drop all of the code related to .remove hook. Signed-off-by: Wei Yongjun Signed-off-by: Mark Brown --- sound/soc/codecs/rt5682.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/sound/soc/codecs/rt5682.c b/sound/soc/codecs/rt5682.c index 61a97301bcfa..baad177908ab 100644 --- a/sound/soc/codecs/rt5682.c +++ b/sound/soc/codecs/rt5682.c @@ -2630,17 +2630,11 @@ static int rt5682_i2c_probe(struct i2c_client *i2c, } - return snd_soc_register_component(&i2c->dev, &soc_component_dev_rt5682, + return devm_snd_soc_register_component(&i2c->dev, + &soc_component_dev_rt5682, rt5682_dai, ARRAY_SIZE(rt5682_dai)); } -static int rt5682_i2c_remove(struct i2c_client *i2c) -{ - snd_soc_unregister_component(&i2c->dev); - - return 0; -} - static void rt5682_i2c_shutdown(struct i2c_client *client) { struct rt5682_priv *rt5682 = i2c_get_clientdata(client); @@ -2671,7 +2665,6 @@ static struct i2c_driver rt5682_i2c_driver = { .acpi_match_table = ACPI_PTR(rt5682_acpi_match), }, .probe = rt5682_i2c_probe, - .remove = rt5682_i2c_remove, .shutdown = rt5682_i2c_shutdown, .id_table = rt5682_i2c_id, }; -- 2.18.0.rc2