linux-stable/sound/soc/meson
Uwe Kleine-König 8210f496c3
ASoC: meson: Make meson_card_remove() return 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.

meson_card_remove() returned zero unconditionally. Make it return void
instead and convert all users to struct platform_device::remove_new().

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Jerome Brunet <jbrunet@baylibre.com>
Link: https://lore.kernel.org/r/20231013221945.1489203-14-u.kleine-koenig@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
2023-10-23 13:29:46 +01:00
..
Kconfig ASoC: Fix 7/8 spaces indentation in Kconfig 2020-11-17 17:08:45 +00:00
Makefile ASoC: meson: g12a: add internal DAC glue driver 2020-02-21 16:39:04 +00:00
aiu-acodec-ctrl.c ASoC: meson: merge DAI call back functions into ops 2023-08-14 13:10:20 +01:00
aiu-codec-ctrl.c ASoC: meson: merge DAI call back functions into ops 2023-08-14 13:10:20 +01:00
aiu-encoder-i2s.c ASoC: meson: Rename set_fmt_new back to set_fmt 2022-06-06 12:34:06 +01:00
aiu-encoder-spdif.c ASoC: meson: aiu: Fix spelling mistake "Unsupport" -> "Unsupported" 2021-09-27 13:01:07 +01:00
aiu-fifo-i2s.c ASoC: meson: merge DAI call back functions into ops 2023-08-14 13:10:20 +01:00
aiu-fifo-spdif.c ASoC: meson: merge DAI call back functions into ops 2023-08-14 13:10:20 +01:00
aiu-fifo.c ASoC: meson: convert not to use asoc_xxx() 2023-09-25 14:16:28 +02:00
aiu-fifo.h ASoC: meson: aiu: add i2s and spdif support 2020-02-13 20:57:22 +00:00
aiu.c ASoC: meson: merge DAI call back functions into ops 2023-08-14 13:10:20 +01:00
aiu.h ASoC: constify of_phandle_args in snd_soc_get_dai_name() 2021-03-10 13:07:14 +00:00
axg-card.c ASoC: meson: Make meson_card_remove() return void 2023-10-23 13:29:46 +01:00
axg-fifo.c ASoC: meson: convert not to use asoc_xxx() 2023-09-25 14:16:28 +02:00
axg-fifo.h ASoC: meson: axg: extend TDM maximum sample rate to 384kHz 2023-09-11 01:30:00 +01:00
axg-frddr.c ASoC: meson: merge DAI call back functions into ops 2023-08-14 13:10:20 +01:00
axg-pdm.c ASoC: meson: merge DAI call back functions into ops 2023-08-14 13:10:20 +01:00
axg-spdifin.c ASoC: meson: spdifin: start hw on dai probe 2023-09-11 01:23:53 +01:00
axg-spdifout.c ASoC: meson: Migrate to new style legacy DAI naming flag 2022-06-27 13:16:28 +01:00
axg-tdm-formatter.c ASoC: meson: axg-tdm-formatter: fix channel slot allocation 2023-08-10 00:22:55 +01:00
axg-tdm-formatter.h ASoC: meson: axg-tdm-formatters: fix sclk inversion 2020-07-30 19:45:01 +01:00
axg-tdm-interface.c ASoC: meson: merge DAI call back functions into ops 2023-08-14 13:10:20 +01:00
axg-tdm.h ASoC: meson: axg: extend TDM maximum sample rate to 384kHz 2023-09-11 01:30:00 +01:00
axg-tdmin.c ASoC: meson: use helper function 2023-01-31 11:05:03 +00:00
axg-tdmout.c ASoC: meson: use helper function 2023-01-31 11:05:03 +00:00
axg-toddr.c ASoC: meson: merge DAI call back functions into ops 2023-08-14 13:10:20 +01:00
g12a-toacodec.c ASoC: meson: merge DAI call back functions into ops 2023-08-14 13:10:20 +01:00
g12a-tohdmitx.c ASoC: meson: merge DAI call back functions into ops 2023-08-14 13:10:20 +01:00
gx-card.c ASoC: meson: Make meson_card_remove() return void 2023-10-23 13:29:46 +01:00
meson-card-utils.c ASoC: meson: Make meson_card_remove() return void 2023-10-23 13:29:46 +01:00
meson-card.h ASoC: meson: Make meson_card_remove() return void 2023-10-23 13:29:46 +01:00
meson-codec-glue.c ASoC: meson: convert not to use asoc_xxx() 2023-09-25 14:16:28 +02:00
meson-codec-glue.h ASoC: meson: g12a: extract codec-to-codec utils 2020-02-13 20:57:20 +00:00
t9015.c ASoC: meson: Remove now redundant non_legacy_dai_naming flag 2022-06-27 13:16:48 +01:00