linux-stable/sound
Uwe Kleine-König 98a11bf9e7
ASoC: mediatek: mt8173-afe-pcm: 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>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Acked-by: Takashi Iwai <tiwai@suse.de>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Link: https://lore.kernel.org/r/20230315150745.67084-110-u.kleine-koenig@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
2023-03-20 13:08:38 +00:00
..
ac97
aoa Driver core changes for 6.3-rc1 2023-02-24 12:58:55 -08:00
arm ALSA: pxa2xx: Convert to platform remove callback returning void 2023-03-20 13:07:00 +00:00
atmel ALSA: atmel: ac97: Convert to platform remove callback returning void 2023-03-20 13:07:01 +00:00
core - Daniel Verkamp has contributed a memfd series ("mm/memfd: add 2023-02-23 17:09:35 -08:00
drivers ALSA: portman2x4: Convert to platform remove callback returning void 2023-03-20 13:07:03 +00:00
firewire
hda Driver core changes for 6.3-rc1 2023-02-24 12:58:55 -08:00
i2c
isa
mips ALSA: mips/sgio2audio: Convert to platform remove callback returning void 2023-03-20 13:07:05 +00:00
oss
parisc
pci ALSA: hda/tegra: Convert to platform remove callback returning void 2023-03-20 13:07:05 +00:00
pcmcia
ppc ALSA: ppc/powermac: Convert to platform remove callback returning void 2023-03-20 13:07:06 +00:00
sh ALSA: sh_dac_audio: Convert to platform remove callback returning void 2023-03-20 13:07:08 +00:00
soc ASoC: mediatek: mt8173-afe-pcm: Convert to platform remove callback returning void 2023-03-20 13:08:38 +00:00
sparc
spi
synth
usb - Daniel Verkamp has contributed a memfd series ("mm/memfd: add 2023-02-23 17:09:35 -08:00
virtio
x86
xen
ac97_bus.c
Kconfig
last.c
Makefile
sound_core.c