linux/sound/ppc
Uwe Kleine-König c3d8cb1929
ALSA: ppc/powermac: 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-11-u.kleine-koenig@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
2023-03-20 13:07:06 +00:00
..
awacs.c ALSA: Replace the word "slave" in vmaster API 2020-07-20 10:10:47 +02:00
awacs.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
beep.c ALSA: ppc: beep: fix clang -Wimplicit-fallthrough 2021-12-07 15:36:56 +01:00
burgundy.c ALSA: ppc: Constify snd_kcontrol_new items 2020-01-03 09:24:32 +01:00
burgundy.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
daca.c ALSA: poewrmac: Fix assignment in if condition 2021-06-09 17:30:36 +02:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
keywest.c ALSA: ppc: keywest: Convert to i2c's .probe_new() 2022-11-19 09:43:50 +01:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
pmac.c ALSA: poewrmac: Fix assignment in if condition 2021-06-09 17:30:36 +02:00
pmac.h powerpc/machdep: Move sys_ctrler_t definition into pmac_feature.h 2022-02-07 21:02:20 +11:00
powermac.c ALSA: ppc/powermac: Convert to platform remove callback returning void 2023-03-20 13:07:06 +00:00
snd_ps3_reg.h ALSA: ps3: fix spelling typo of values 2021-03-02 10:26:13 +01:00
snd_ps3.c ALSA: ppc: fix unused function local variable 2023-02-09 08:04:36 +01:00
snd_ps3.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 277 2019-06-05 17:36:36 +02:00
tumbler_volume.h ALSA: ppc: More constifications 2020-01-05 16:14:43 +01:00
tumbler.c ALSA: ppc: Switch to use for_each_child_of_node() macro 2022-09-17 10:01:04 +02:00