mirror-linux/sound/soc/intel/atom/sst
Uwe Kleine-König c524f1674f
ASoC: Intel: sst: 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-94-u.kleine-koenig@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
2023-03-20 13:08:23 +00:00
..
Makefile ASoC: Intel: atom: Remove duplicate kconfigs 2020-10-14 20:29:54 +01:00
sst.c ASoC: Intel: sst: Replace sprintf() with sysfs_emit() 2022-08-15 01:19:46 +01:00
sst.h ASoC: Intel: Make atom components independent of sst-dsp 2020-10-06 15:12:27 +01:00
sst_acpi.c ASoC: Intel: sst: Convert to platform remove callback returning void 2023-03-20 13:08:23 +00:00
sst_drv_interface.c ASoC: Intel: atom: use pm_runtime_resume_and_get() 2022-04-27 14:15:27 +01:00
sst_ipc.c ASoC: Intel: atom: sst_ipc: remove useless initializations 2022-06-06 12:35:13 +01:00
sst_loader.c ASoC: Intel: atom: fix kernel-doc 2021-03-10 13:08:47 +00:00
sst_pci.c ASoC: Intel: mrfld: return error codes when an error occurs 2020-02-11 11:25:05 +00:00
sst_pvt.c ASoC: Intel: Make atom components independent of sst-dsp 2020-10-06 15:12:27 +01:00
sst_stream.c ASoC: Intel: Make atom components independent of sst-dsp 2020-10-06 15:12:27 +01:00