From patchwork Wed Oct 20 12:57:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= X-Patchwork-Id: 12572325 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 26ED2C433EF for ; Wed, 20 Oct 2021 12:58:52 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 689A960241 for ; Wed, 20 Oct 2021 12:58:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 689A960241 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 0B68B16DB; Wed, 20 Oct 2021 14:57:58 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 0B68B16DB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1634734728; bh=mYnVE4n2leb+EcCYf+CAdW38fk+wnL5VE8U7mW7E4Mw=; h=From:To:Subject:Date:Cc:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=Bg8SmrfGL7Q5CYrKnweofGLcvq1zhl04Mlnscp4O1hcTtwRTrGOptF5pKNqE+rhWm dIZb2sEjeO5DefT6HLWDg0nuCGDVyhsinQaLh6MzT6N4s2h4QiOZO9vM0386ZUANVe I/EPyk4/uOHXZgtwA2SA5uV7H0DIkFsZ+dFCx/nE= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 79DEEF80155; Wed, 20 Oct 2021 14:57:57 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id CA69BF80229; Wed, 20 Oct 2021 14:57:55 +0200 (CEST) Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id BC8D7F80155 for ; Wed, 20 Oct 2021 14:57:47 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz BC8D7F80155 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mdBA5-0001kv-0u; Wed, 20 Oct 2021 14:57:41 +0200 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1mdBA0-00061p-Uj; Wed, 20 Oct 2021 14:57:36 +0200 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1mdBA0-0003zg-Tg; Wed, 20 Oct 2021 14:57:36 +0200 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Liam Girdwood , Mark Brown Subject: [PATCH] ASoc: wm8900: Drop empty spi_driver remove callback Date: Wed, 20 Oct 2021 14:57:26 +0200 Message-Id: <20211020125726.22946-1-u.kleine-koenig@pengutronix.de> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Patch-Hashes: v=1; h=sha256; i=zIi5gRuEiYNJVh/w3qxVSSYbZxuvZ/hJH1fEbheIp3M=; m=H2CYebE0C3w0pEIPV6p+i3ENgo2xahs3TAXJZPt6zAw=; p=kvg2gPMiQ0bwMaN/9y81alXechA4psrhpYfA1Xzp6uU=; g=8358fb004c6da5ca73a8a43ae1b5a1a6dbf3510b X-Patch-Sig: m=pgp; i=u.kleine-koenig@pengutronix.de; s=0x0D2511F322BFAB1C1580266BE2DCDD9132669BD6; b=iQEzBAABCgAdFiEEfnIqFpAYrP8+dKQLwfwUeK3K7AkFAmFwEjIACgkQwfwUeK3K7AlgZwf/WIm diKR3LRYmKvJGo+BheSosxdhlamFeyPclAMgbXBvTHCJ7fQAqOtO4zYXbm1BVXSwgZ2tkjsy3eq/y z1afF5euBpwF6kIVXEMRf6nliT5COId95rkrtx6ZJ3Gd7CIpzM6JBgP4v/+xT0MLERm77B1k0Uq8R lAWk22qT0VBgstEoa8ry9zl+kYZ6n3vP2gjRLPzfyiECPHLYsEtFseQhImfY9uAUmWElarbVfRG6w G4NIGDyePGE6zLSlndbjpnUAaHTEr1+RfNaS6pn8k7ifEKuA79R6HqvbvUmzsuUbGwyeYgdua2TMx 2QPWfOm09TH6faQYwNDMDIlcv1N9FRA== X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: alsa-devel@alsa-project.org Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, kernel@pengutronix.de X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 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" A driver with a remove callback that just returns 0 behaves identically to a driver with no remove callback at all. So simplify accordingly. Signed-off-by: Uwe Kleine-König Acked-by: Charles Keepax --- sound/soc/codecs/wm8900.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/sound/soc/codecs/wm8900.c b/sound/soc/codecs/wm8900.c index a9a6d766a176..bf3a4415a85f 100644 --- a/sound/soc/codecs/wm8900.c +++ b/sound/soc/codecs/wm8900.c @@ -1252,17 +1252,11 @@ static int wm8900_spi_probe(struct spi_device *spi) return ret; } -static int wm8900_spi_remove(struct spi_device *spi) -{ - return 0; -} - static struct spi_driver wm8900_spi_driver = { .driver = { .name = "wm8900", }, .probe = wm8900_spi_probe, - .remove = wm8900_spi_remove, }; #endif /* CONFIG_SPI_MASTER */