summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/tlv320aic32x4-spi.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2021-10-15 09:11:13 +0200
committerMark Brown <broonie@kernel.org>2021-10-18 14:56:42 +0200
commit0f884099a57516c0f1b66aa29e03b9265b242fff (patch)
tree41db3e11f901b1101ddea080dba82dc19646e653 /sound/soc/codecs/tlv320aic32x4-spi.c
parentMerge tag 'v5.15-rc6' into asoc-5.16 (diff)
downloadlinux-0f884099a57516c0f1b66aa29e03b9265b242fff.tar.xz
linux-0f884099a57516c0f1b66aa29e03b9265b242fff.zip
ASoC: tlv320aic32x4: Make aic32x4_remove() return void
Up to now aic32x4_remove() returns zero unconditionally. Make it return void instead which makes it easier to see in the callers that there is no error to handle. Also the return value of i2c and spi remove callbacks is ignored anyway. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Link: https://lore.kernel.org/r/20211015071113.2795767-1-u.kleine-koenig@pengutronix.de Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/tlv320aic32x4-spi.c')
-rw-r--r--sound/soc/codecs/tlv320aic32x4-spi.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/soc/codecs/tlv320aic32x4-spi.c b/sound/soc/codecs/tlv320aic32x4-spi.c
index e81c72958a82..a8958cd1c692 100644
--- a/sound/soc/codecs/tlv320aic32x4-spi.c
+++ b/sound/soc/codecs/tlv320aic32x4-spi.c
@@ -48,7 +48,9 @@ static int aic32x4_spi_probe(struct spi_device *spi)
static int aic32x4_spi_remove(struct spi_device *spi)
{
- return aic32x4_remove(&spi->dev);
+ aic32x4_remove(&spi->dev);
+
+ return 0;
}
static const struct spi_device_id aic32x4_spi_id[] = {