From patchwork Wed Oct 20 12:58:03 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: 12572327 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 B67AAC433FE for ; Wed, 20 Oct 2021 12:59:34 +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 A354D60241 for ; Wed, 20 Oct 2021 12:59:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org A354D60241 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 776CA16EA; Wed, 20 Oct 2021 14:58:41 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 776CA16EA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1634734771; bh=HttVH5Ct4gC/lyTAKhpD1IttPms7gVBgbjDqngvZA0o=; h=From:To:Subject:Date:Cc:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=ZD9LMgv1mQHJbSnjAuN9UxkL1FZQOzlF5gKwaOB/r7km/qcZ7Gl9BIodbY6sCop2O p1DUeFK829nRjQAPdvV30qBAiWXXFHQoN+KY+gjFGV4Jkg5MU1SyH6g233l8fIQWBU gqFWKrayS7wmM3Z8eHfjQU3Vuz4j2jtXKlj5BtjE= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 61BA8F802A9; Wed, 20 Oct 2021 14:58:30 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 0C3CCF802DF; Wed, 20 Oct 2021 14:58:29 +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 0E807F80224 for ; Wed, 20 Oct 2021 14:58:23 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 0E807F80224 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 1mdBAf-0001rC-VT; Wed, 20 Oct 2021 14:58:18 +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 1mdBAf-000620-2p; Wed, 20 Oct 2021 14:58:17 +0200 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1mdBAf-00040J-1u; Wed, 20 Oct 2021 14:58:17 +0200 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Liam Girdwood , Mark Brown Subject: [PATCH] ASoc: wm8731: Drop empty spi_driver remove callback Date: Wed, 20 Oct 2021 14:58:03 +0200 Message-Id: <20211020125803.23117-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=Y7xBbANbWLO2mbQDJa+DpqXxhnantOSwJNOSLTBuF58=; m=H2CYebE0C3w0pEIPV6p+i3ENgo2xahs3TAXJZPt6zAw=; p=bcMssGCSnNSvaBs1KoVO9VPflO2FIxIqq5Deqh6BVzg=; g=c09710cbdb794801eef9ad43ddd5c2dd91859eab X-Patch-Sig: m=pgp; i=u.kleine-koenig@pengutronix.de; s=0x0D2511F322BFAB1C1580266BE2DCDD9132669BD6; b=iQEzBAABCgAdFiEEfnIqFpAYrP8+dKQLwfwUeK3K7AkFAmFwElcACgkQwfwUeK3K7AljVQf9G7Z 5hY5CSUhwQi2IIcCAvoSrko/gqhVqR/ZCBj2RD+9+10XJcbc8xUhrr/DxSOmcAK6+fbkHq8wdHWXz LJ93cx2/wTj4UJ8efG8LNlyCCeQNgbHqksS79GLGLy74UBPNYZ8ocNmjIoWL2ZG5rbZwuerMdRJpg 5qzMJzgyEMxUEwnYMddV4aY1SsXzRTCaU2T9sEBwzjGoDWnDElX5AuCxPBaPJTTrCv7dkP0TuPFII YqRWSbhPNESqAEodrgs+cCplkd0lpAOoGwGbKkrelwop1O4UNtl6Gxi+ti1yayRKAoT8DoLTkFASs 1DXcQmNlcYTVI/99exeIrpNVWSm+C/g== 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/wm8731.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/sound/soc/codecs/wm8731.c b/sound/soc/codecs/wm8731.c index dcee7b2bd3d7..86b1f6eaa599 100644 --- a/sound/soc/codecs/wm8731.c +++ b/sound/soc/codecs/wm8731.c @@ -713,18 +713,12 @@ static int wm8731_spi_probe(struct spi_device *spi) return 0; } -static int wm8731_spi_remove(struct spi_device *spi) -{ - return 0; -} - static struct spi_driver wm8731_spi_driver = { .driver = { .name = "wm8731", .of_match_table = wm8731_of_match, }, .probe = wm8731_spi_probe, - .remove = wm8731_spi_remove, }; #endif /* CONFIG_SPI_MASTER */