ASoc: wm8900: Drop empty spi_driver remove callback
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Wed, 20 Oct 2021 12:57:26 +0000 (14:57 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 25 Oct 2021 11:36:18 +0000 (12:36 +0100)
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 <u.kleine-koenig@pengutronix.de>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20211020125726.22946-1-u.kleine-koenig@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm8900.c

index a9a6d766a176319cbfd45f00f7d08b135a1fa7e3..bf3a4415a85f7c8d3cdf5d994109d81288b4e160 100644 (file)
@@ -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 */