linux/sound/soc/amd
Uwe Kleine-König 0deb003933
ASoC: amd: acp: Fix error handling in .remove()
Even in the presence of problems (here: rn_acp_deinit() might fail), it's
important to unregister all resources acquired during .probe() because
even if .remove() returns an error code, the device is removed.

As .remove() is only called after .probe() returned success, platdata
must be valid, so the first check in .remove() can just be dropped.

This is a preparation for making platform remove callbacks return void.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20220622061739.225966-1-u.kleine-koenig@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
2022-06-22 13:39:36 +01:00
..
acp ASoC: amd: acp: Fix error handling in .remove() 2022-06-22 13:39:36 +01:00
include
raven ASoC: amd: acp3x: Fix signedness bug in acp3x 2022-03-08 12:27:56 +00:00
renoir ASoC: amd: pcm-dma: Fix signedness bug in acp_pdm_audio_probe() 2022-03-07 13:14:48 +00:00
vangogh ASoC: amd: vangogh: Rename set_fmt_new back to set_fmt 2022-06-06 12:33:54 +01:00
yc Allow detecting ACP6x DMIC via _DSD 2022-04-12 17:16:51 +01:00
acp3x-rt5682-max9836.c ASoC: soc-card: Create jack kcontrol without pins 2022-04-14 17:37:21 +01:00
acp-config.c ASoC: amd: acp: Add support for rt5682s and rt1019 card with hs instance 2022-06-06 12:35:01 +01:00
acp-da7219-max98357a.c ASoC: soc-card: Create jack kcontrol without pins 2022-04-14 17:37:21 +01:00
acp-pcm-dma.c ASoC: amd: pcm-dma: Use platform_get_irq() to get the interrupt 2022-02-28 13:33:35 +00:00
acp-rt5645.c ASoC: soc-card: Create jack kcontrol without pins 2022-04-14 17:37:21 +01:00
acp.h ASoC: amd: acp-pcm-dma: add .delay support 2021-11-29 12:19:42 +00:00
Kconfig ASoC: amd: renoir: Add check for acp configuration flags 2022-01-28 15:59:35 +00:00
mach-config.h ASoC: amd: acp: Add support for nau8825 and max98360 card 2022-06-06 12:35:00 +01:00
Makefile ASoC: amd: Add module to determine ACP configuration 2021-11-17 17:35:50 +00:00