linux-stable/sound/soc/intel/catpt
Uwe Kleine-König 4b6f925593
ASoC: Intel: catpt: 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-104-u.kleine-koenig@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
2023-03-20 13:08:33 +00:00
..
core.h ACPI updates for 5.11-rc1 2020-12-15 16:39:06 -08:00
device.c ASoC: Intel: catpt: Convert to platform remove callback returning void 2023-03-20 13:08:33 +00:00
dsp.c ASoC: Intel: catpt: Test dmaengine_submit() result before moving on 2021-12-17 16:20:36 +00:00
ipc.c ASoC: Intel: catpt: Event tracing 2020-10-02 15:32:33 +01:00
loader.c ACPI updates for 5.11-rc1 2020-12-15 16:39:06 -08:00
Makefile ASoC: Intel: Select catpt and deprecate haswell 2020-10-02 15:32:39 +01:00
messages.c ASoC: Intel: catpt: Add IPC message handlers 2020-10-02 15:32:29 +01:00
messages.h ASoC: Intel: catpt: Drop redundant enum constant 2022-04-05 10:23:22 +01:00
pcm.c ASoC: Intel: catpt: use pm_runtime_resume_and_get() 2022-06-27 13:17:53 +01:00
registers.h
sysfs.c ASoC: Intel: catpt: Replace sprintf() with sysfs_emit() 2022-08-15 01:19:47 +01:00
trace.h ASoC: Intel: catpt: Event tracing 2020-10-02 15:32:33 +01:00