From patchwork Thu Aug 20 16:41:15 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vaishali Thakkar X-Patchwork-Id: 7046121 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id CAFE6C05AC for ; Thu, 20 Aug 2015 16:41:37 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1611D2053B for ; Thu, 20 Aug 2015 16:41:37 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id ABAF520528 for ; Thu, 20 Aug 2015 16:41:34 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 74A642652CF; Thu, 20 Aug 2015 18:41:33 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 7516E26528D; Thu, 20 Aug 2015 18:41:31 +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 4F9D026528F; Thu, 20 Aug 2015 18:41:30 +0200 (CEST) Received: from mail-pa0-f43.google.com (mail-pa0-f43.google.com [209.85.220.43]) by alsa0.perex.cz (Postfix) with ESMTP id 2420626528D for ; Thu, 20 Aug 2015 18:41:23 +0200 (CEST) Received: by pacgr6 with SMTP id gr6so442508pac.1 for ; Thu, 20 Aug 2015 09:41:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:mime-version:content-type :content-disposition:user-agent; bh=un6YYp6bsxZUODA1pMdhurkwoaaLAE3Dxi0sOqblgIc=; b=ZPEczkZL6p+7scg3FG4gIOAvbfkPC51/N3oSx6p54h4c1HzN6K0ZuL7ZnkNCxf361u tlzDOQ+9lgCT8L/mimkvzvanYqTNnoo54RoaSiOKahti8+qwl8C5Ha765kEva5lkdRgT Amahtr/cWCE7XnJPKwD916VHybuJo9cPxQn1DZ27eTDmQZn0lr6D4rXJ6a6Z9U//RQon K8zLkMP7TnCUZvErTJHbfSozaRrzLfoDcxZY5RQbWGhRlKLeq2xY/eJYOF9Hv7p1Ksmv cc0q+U7vGlAgDxaQOb2tVksgB0kij4qHJtSuLuMdTeJYC3wiOfbgQxEQxY0A525e0T1K Ci4w== X-Received: by 10.66.248.162 with SMTP id yn2mr8120338pac.85.1440088882356; Thu, 20 Aug 2015 09:41:22 -0700 (PDT) Received: from vaishali-Ideapad-Z570 ([150.107.241.198]) by smtp.gmail.com with ESMTPSA id ob15sm4913922pdb.52.2015.08.20.09.41.20 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 20 Aug 2015 09:41:22 -0700 (PDT) Date: Thu, 20 Aug 2015 22:11:15 +0530 From: Vaishali Thakkar To: Kukjin Kim Message-ID: <20150820164115.GA19191@localhost> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Krzysztof Kozlowski , linux-samsung-soc@vger.kernel.org, alsa-devel@alsa-project.org, Sangbeom Kim , linux-kernel@vger.kernel.org, Takashi Iwai , Liam Girdwood , Mark Brown , linux-arm-kernel@lists.infradead.org Subject: [alsa-devel] [PATCH] ASoC: Samsung: Remove redundant arndale_audio_remove 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: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP There is no use of snd_soc_unregister_card in remove function as devm_snd_soc_register_card in probe function automatically handles it. So, remove use of snd_soc_unregister_card and with this change remove arndale_audio_remove as it is now redundant. Signed-off-by: Vaishali Thakkar Reviewed-by: Krzysztof Kozlowski --- sound/soc/samsung/arndale_rt5631.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/sound/soc/samsung/arndale_rt5631.c b/sound/soc/samsung/arndale_rt5631.c index 8bf2e2c..9e371eb 100644 --- a/sound/soc/samsung/arndale_rt5631.c +++ b/sound/soc/samsung/arndale_rt5631.c @@ -116,15 +116,6 @@ static int arndale_audio_probe(struct platform_device *pdev) return ret; } -static int arndale_audio_remove(struct platform_device *pdev) -{ - struct snd_soc_card *card = platform_get_drvdata(pdev); - - snd_soc_unregister_card(card); - - return 0; -} - static const struct of_device_id samsung_arndale_rt5631_of_match[] __maybe_unused = { { .compatible = "samsung,arndale-rt5631", }, { .compatible = "samsung,arndale-alc5631", }, @@ -139,7 +130,6 @@ static struct platform_driver arndale_audio_driver = { .of_match_table = of_match_ptr(samsung_arndale_rt5631_of_match), }, .probe = arndale_audio_probe, - .remove = arndale_audio_remove, }; module_platform_driver(arndale_audio_driver);