linux-stable/sound/soc/samsung
Uwe Kleine-König 7695582fd4
ASoC: samsung: spdif: 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-130-u.kleine-koenig@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
2023-03-20 13:08:56 +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 ASoC: samsung: dmaengine: Convert to SPDX License Indentifier 2019-04-19 16:48:52 +01:00
dmaengine.c ASoC: samsung: dmaengine: Convert to SPDX License Indentifier 2019-04-19 16:48:52 +01:00
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 ASoC: samsung: i2s: Convert to SPDX License Identifier 2019-04-19 16:49:49 +01:00
idma.c ASoC: samsung: remove unneeded ret variable 2022-01-24 13:31:56 +00:00
idma.h ASoC: samsung: idma: Convert to SPDX License Identifier 2019-04-19 16:50:17 +01:00
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 ASoC: samsung: pcm: Convert to SPDX License Identifier 2019-04-19 16:53:12 +01:00
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: Convert to platform remove callback returning void 2023-03-20 13:08:55 +00:00
spdif.c ASoC: samsung: spdif: Convert to platform remove callback returning void 2023-03-20 13:08:56 +00:00
spdif.h ASoC: samsung: spdif: Convert to SPDX License Identifier 2019-04-19 16:58:21 +01:00
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