2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-11-24 02:24:28 +08:00
linux-next/sound/soc/uniphier
Uwe Kleine-König 7242265213
ASoC: uniphier: Make uniphier_aio_remove() return 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.

uniphier_aio_remove() returned zero unconditionally.  Make it return
void instead and convert all users to struct
platform_device::remove_new().

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20231013221945.1489203-16-u.kleine-koenig@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
2023-10-23 13:29:48 +01:00
..
aio-compress.c ASoC: uniphier: convert not to use asoc_xxx() 2023-09-25 14:16:39 +02:00
aio-core.c ASoC: uniphier: aio-core: Make some read-only arrays static const 2022-12-05 14:05:40 +00:00
aio-cpu.c ASoC: uniphier: Make uniphier_aio_remove() return void 2023-10-23 13:29:48 +01:00
aio-dma.c ASoC: uniphier: convert not to use asoc_xxx() 2023-09-25 14:16:39 +02:00
aio-ld11.c ASoC: uniphier: Make uniphier_aio_remove() return void 2023-10-23 13:29:48 +01:00
aio-pxs2.c ASoC: uniphier: Make uniphier_aio_remove() return void 2023-10-23 13:29:48 +01:00
aio-reg.h ASoC: uniphier: add support for multichannel output 2018-07-30 12:02:31 +01:00
aio.h ASoC: uniphier: Make uniphier_aio_remove() return void 2023-10-23 13:29:48 +01:00
evea.c ASoC: uniphier: evea: Convert to platform remove callback returning void 2023-03-20 13:09:31 +00:00
Kconfig ASoC: uniphier: drop selecting non-existing SND_SOC_UNIPHIER_AIO_DMA 2021-11-25 11:54:30 +00:00
Makefile ASoC: uniphier: add support for UniPhier PXs2 AIO 2018-03-09 15:49:42 +00:00