Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp942822imm; Fri, 22 Jun 2018 07:52:24 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIinOGEKza1PIpQUBGx0YznTn6x4bRHzBSgWk91OLo8i3J+SCengkEvngIL3o5X30vu4R9k X-Received: by 2002:a17:902:46e:: with SMTP id 101-v6mr2061649ple.39.1529679144464; Fri, 22 Jun 2018 07:52:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529679144; cv=none; d=google.com; s=arc-20160816; b=br7Fq6Jc+iTDWgJemHxn/C7WFHcqGpvgosWCcCEk3EiAl3AbaB9cvmEvyagHhac6S3 ojgyU6bHR4xp/1Vorq8tvbA+DRhruOG4VgiftbMP293x9+38L2azCo+5QTivKF3mBZet 4o3oyg1kmYPnHrADszo7rzdpkYxFdtXlHjZHFIrlUd5PzTfm4jwWZoPiAtxZv7e+Xef3 gYu4+aPKam3q/itSai32MVbc1h5vexQxKH04pErOpuUrPyZibof+EJjbTkj2QkQcNyeL UNNy9suGHPO54+5sHig5x7joP3JnuwvPU9MZ1LAgW8p8CcgmdN9DDen4q0DNefkkFT08 UpLw== 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=KSN4DRMfyl5Hp8byLa6zK20ai6Un9kOGC2VEK6s56q4=; b=0er8dhir5iFJfj9/HiwICWFIUCWM9OhStPpYlSUR8x8HPVBF5pH52krgJCmDw3p9ok ME+7ipnYG6XOgbaQU+5ilOeIiUryP/hRT5FnaYfm2Do53x7PwEBmYsJnf+zsyp/l7+rP TMwJro8iirliaqjd/N3Kdd7f/KeBK2BdwXIo1DMYK++l9nMqCMsnBPquTiIpZol1CeBb K1V86GhBNfHZMPxXJ5x5CuuuDCjqz7jwgGCTCmpuar6Fb8pqKz+nY5Xzb0LIr5H1zS4j DB0WwJ2syWzMuDLHRW/1HeSlV4UVYh72BFpJMwrIubN20N3opgu1P2Lyosv9xALa3nAC BrAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=QXFAQZoN; 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 t64-v6si8151001pfb.98.2018.06.22.07.52.10; Fri, 22 Jun 2018 07:52:24 -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=QXFAQZoN; 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 S933830AbeFVOut (ORCPT + 99 others); Fri, 22 Jun 2018 10:50:49 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:33316 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933811AbeFVOur (ORCPT ); Fri, 22 Jun 2018 10:50:47 -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=KSN4DRMfyl5Hp8byLa6zK20ai6Un9kOGC2VEK6s56q4=; b=QXFAQZoNhEpp Yp8Jph9hE/P+Bl5X3YRhxzfurrM/TmyC6Hl9C3XF7PF4LIKOtaXUzwEEWonz2lSDudE70RNixCnAq TeWA1NnRMgftPR4ZvLrqdnByVPjooYzKo3pZWPYEY3RndgSuJfycI7u5tA+NqU/M1AKlRRlkFjxRK JdulQ=; 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 1fWNOU-0003ut-Qj; Fri, 22 Jun 2018 14:50:34 +0000 Received: from broonie by debutante with local (Exim 4.91) (envelope-from ) id 1fWNOU-0002gy-Cc; Fri, 22 Jun 2018 15:50:34 +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: rt1305: use devm_snd_soc_register_component()" to the asoc tree In-Reply-To: <1529634214-105520-1-git-send-email-weiyongjun1@huawei.com> Message-Id: Date: Fri, 22 Jun 2018 15:50:34 +0100 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch ASoC: rt1305: 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 2854a214f398f2c3315204a05efff11739fec062 Mon Sep 17 00:00:00 2001 From: Wei Yongjun Date: Fri, 22 Jun 2018 02:23:34 +0000 Subject: [PATCH] ASoC: rt1305: 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/rt1305.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/sound/soc/codecs/rt1305.c b/sound/soc/codecs/rt1305.c index 421b8fb2fa04..c4452efc7970 100644 --- a/sound/soc/codecs/rt1305.c +++ b/sound/soc/codecs/rt1305.c @@ -1150,17 +1150,11 @@ static int rt1305_i2c_probe(struct i2c_client *i2c, rt1305_reset(rt1305->regmap); rt1305_calibrate(rt1305); - return snd_soc_register_component(&i2c->dev, &soc_component_dev_rt1305, + return devm_snd_soc_register_component(&i2c->dev, + &soc_component_dev_rt1305, rt1305_dai, ARRAY_SIZE(rt1305_dai)); } -static int rt1305_i2c_remove(struct i2c_client *i2c) -{ - snd_soc_unregister_component(&i2c->dev); - - return 0; -} - static void rt1305_i2c_shutdown(struct i2c_client *client) { struct rt1305_priv *rt1305 = i2c_get_clientdata(client); @@ -1180,7 +1174,6 @@ static struct i2c_driver rt1305_i2c_driver = { #endif }, .probe = rt1305_i2c_probe, - .remove = rt1305_i2c_remove, .shutdown = rt1305_i2c_shutdown, .id_table = rt1305_i2c_id, }; -- 2.18.0.rc2