WSL2-Linux-Kernel/sound/soc/intel/atom
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
..
sst ASoC: Intel: sst: Convert to platform remove callback returning void 2023-03-20 13:08:23 +00:00
Makefile ASoC: Intel: atom: Remove duplicate kconfigs 2020-10-14 20:29:54 +01:00
sst-atom-controls.c ASoC: intel: use helper function 2023-01-31 11:05:01 +00:00
sst-atom-controls.h ASoC: Intel: atom: use inclusive language for SSP bclk/fsync 2020-11-13 14:22:07 +00:00
sst-mfld-dsp.h treewide: Replace zero-length arrays with flexible-array members 2022-02-17 07:00:39 -06:00
sst-mfld-platform-compress.c ASoC: Intel: Atom: compress: remove redundant assignment 2020-08-18 11:50:09 +01:00
sst-mfld-platform-pcm.c ASoC: Intel: sst-mfld-platform-pcm: Convert to platform remove callback returning void 2023-03-20 13:08:22 +00:00
sst-mfld-platform.h ASoC: Intel: Atom: (cosmetic) align parameters 2020-08-18 11:50:17 +01:00