linux/sound/soc/samsung
Uwe Kleine-König 9f82db9dbb
ASoC: samsung: 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>
Acked-by: Takashi Iwai <tiwai@suse.de>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Link: https://lore.kernel.org/r/20230315150745.67084-128-u.kleine-koenig@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
2023-03-20 13:08:54 +00:00
..
aries_wm8994.c ASoC: samsung: Use iio_get_channel_type() accessor. 2022-08-22 14:07:22 +01:00
arndale.c ASoC: samsung: arndale: Convert to platform remove callback returning void 2023-03-20 13:08:51 +00:00
bells.c ASoC: samsung: Constify snd_soc_dapm_{route,widget} structs 2022-04-05 10:23:14 +01:00
dma.h
dmaengine.c
i2s-regs.h ASoC: samsung: i2s: add support for FSD I2S 2023-01-17 13:16:04 +00:00
i2s.c ASoC: samsung: i2s: Convert to platform remove callback returning void 2023-03-20 13:08:52 +00:00
i2s.h
idma.c ASoC: samsung: remove unneeded ret variable 2022-01-24 13:31:56 +00:00
idma.h
Kconfig ASoC: samsung: remove unused drivers 2023-01-16 09:26:06 +01:00
littlemill.c ASoC: soc-card: Create jack kcontrol without pins 2022-04-14 17:37:21 +01:00
lowland.c ASoC: soc-card: Create jack kcontrol without pins 2022-04-14 17:37:21 +01:00
Makefile ASoC: samsung: remove unused drivers 2023-01-16 09:26:06 +01:00
midas_wm1811.c ASoC: soc-card: Create jack kcontrol without pins 2022-04-14 17:37:21 +01:00
odroid.c ASoC: samsung: odroid: Convert to platform remove callback returning void 2023-03-20 13:08:53 +00:00
pcm.c ASoC: samsung: pcm: Convert to platform remove callback returning void 2023-03-20 13:08:54 +00:00
pcm.h
smdk_spdif.c ASoC: samsung: use asoc_substream_to_rtd() 2020-07-23 19:07:26 +01:00
smdk_wm8994.c ASoC: samsung: Use dev_err_probe() helper 2021-12-20 12:47:22 +00:00
smdk_wm8994pcm.c ASoC: samsung: Use dev_err_probe() helper 2021-12-20 12:47:22 +00:00
snow.c ASoC: samsung: snow: simplify error handling 2022-06-06 12:35:21 +01:00
spdif.c ASoC: samsung: Migrate to new style legacy DAI naming flag 2022-06-27 13:16:44 +01:00
spdif.h
speyside.c ASoC: soc-card: Create jack kcontrol without pins 2022-04-14 17:37:21 +01:00
tm2_wm5110.c ASoC: samsung: Use dev_err_probe() helper 2021-12-20 12:47:22 +00:00
tobermory.c ASoC: soc-card: Create jack kcontrol without pins 2022-04-14 17:37:21 +01:00