diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2021-10-20 14:58:03 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-10-25 12:36:15 +0100 |
commit | 8b27cb2e6dd67552f19f45b4560bdedce1ffb638 (patch) | |
tree | 91f87051c929e0b91c1f3edd30348580fb28bce8 /sound/soc | |
parent | a6d968a3e8f01bdc09fc397697ce27ef75392ce7 (diff) | |
download | linux-8b27cb2e6dd67552f19f45b4560bdedce1ffb638.tar.bz2 |
ASoc: wm8731: 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/20211020125803.23117-1-u.kleine-koenig@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/codecs/wm8731.c | 6 |
1 files changed, 0 insertions, 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 */ |