OpenCloudOS-Kernel/sound/soc/au1x
Uwe Kleine-König 045b9b33d5
ASoC: au1x: psc-i2s: Convert to platform remove callback returning void
The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is (mostly) ignored
and this typically results in resource leaks. To improve here there is a
quest to make the remove callback return void. In the first step of this
quest all drivers are converted to .remove_new() which already returns
void.

Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: Takashi Iwai <tiwai@suse.de>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Link: https://lore.kernel.org/r/20230315150745.67084-38-u.kleine-koenig@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
2023-03-20 13:07:31 +00:00
..
Kconfig ASoC: wm8731: Factor out the I2C and SPI bus code into separate modules 2022-04-04 08:39:32 +01:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
ac97c.c ASoC: au1x: ac97c: Convert to platform remove callback returning void 2023-03-20 13:07:29 +00:00
db1000.c Linux 5.2-rc6 2019-06-26 12:39:34 +01:00
db1200.c ASoC: au1x: Convert to modern terminology for DAI clocking 2021-09-16 14:11:37 +01:00
dbdma2.c ASoC: au1x: use asoc_substream_to_rtd() 2020-07-23 19:07:36 +01:00
dma.c ASoC: au1x: use asoc_substream_to_rtd() 2020-07-23 19:07:36 +01:00
i2sc.c ASoC: au1x: i2sc: Convert to platform remove callback returning void 2023-03-20 13:07:30 +00:00
psc-ac97.c ASoC: au1x: psc-ac97: Convert to platform remove callback returning void 2023-03-20 13:07:30 +00:00
psc-i2s.c ASoC: au1x: psc-i2s: Convert to platform remove callback returning void 2023-03-20 13:07:31 +00:00
psc.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00