linux-stable/sound/soc/rockchip
Uwe Kleine-König ed1e0f5a27
ASoC: rockchip: rockchip_rt5645: 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-123-u.kleine-koenig@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
2023-03-20 13:08:49 +00:00
..
Kconfig ASoC: Kconfig: fix spelling of "up to" 2023-01-25 14:24:03 +00:00
Makefile Merge branch 'asoc-5.15' into asoc-5.16 2021-10-21 14:41:32 +01:00
rk3288_hdmi_analog.c ASoC: rockchip: simplify error handling 2022-06-06 12:35:20 +01:00
rk3399_gru_sound.c ASoC: rockchip: Drop da7219_aad_jack_det() usage 2022-11-07 13:58:16 +00:00
rockchip_i2s.c ASoC: rockchip: rockchip_i2s: Convert to platform remove callback returning void 2023-03-20 13:08:47 +00:00
rockchip_i2s.h ASoC: rockchip: i2s: Add support for frame inversion 2021-08-26 13:59:40 +01:00
rockchip_i2s_tdm.c ASoC: rockchip: use helper function 2023-01-31 11:05:04 +00:00
rockchip_i2s_tdm.h ASoC: rockchip: add support for i2s-tdm controller 2021-10-07 16:58:16 +01:00
rockchip_max98090.c ASoC: soc-card: Create jack kcontrol without pins 2022-04-14 17:37:21 +01:00
rockchip_pdm.c ASoC: rockchip: rockchip_pdm: Convert to platform remove callback returning void 2023-03-20 13:08:48 +00:00
rockchip_pdm.h ASoC: rockchip: pdm: Add support for path map 2021-09-13 01:44:10 +01:00
rockchip_rt5645.c ASoC: rockchip: rockchip_rt5645: Convert to platform remove callback returning void 2023-03-20 13:08:49 +00:00
rockchip_spdif.c ASoC: rockchip: use helper function 2023-01-31 11:05:04 +00:00
rockchip_spdif.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00