diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2021-10-20 15:57:26 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-10-25 14:36:18 +0300 |
commit | 03f0267b090ff3c2ae7899d26d4c12d925f47cf2 (patch) | |
tree | c670dc18c930ec4e7bb93ba39e11d56a0018ae6e | |
parent | 824edd866a13db7dbb0d8e26d2142f10271b6460 (diff) | |
download | linux-03f0267b090ff3c2ae7899d26d4c12d925f47cf2.tar.xz |
ASoc: wm8900: Drop empty spi_driver remove callback
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>
-rw-r--r-- | sound/soc/codecs/wm8900.c | 6 |
1 files changed, 0 insertions, 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 */ |