linux/sound/soc/amd/acp
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-i2s.c
acp-legacy-mach.c ASoC: amd: acp: Set Speaker enable/disable pin through rt1019 codec driver. 2022-05-19 16:46:43 +01:00
acp-mach-common.c ASoC: amd: acp: Add support for rt5682s and rt1019 card with hs instance 2022-06-06 12:35:01 +01:00
acp-mach.h ASoC: amd: acp: Add support for nau8825 and max98360 card 2022-06-06 12:35:00 +01:00
acp-pci.c ASoC: SOF: amd: Fixed Build error 2022-05-23 18:33:13 +01:00
acp-pdm.c ASoC: amd: acp: fix typo in comment 2022-06-06 12:38:31 +01:00
acp-platform.c ASoC: amd: acp: Fix return value check in acp_machine_select() 2021-10-27 11:31:24 +01:00
acp-renoir.c ASoC: amd: acp: Fix error handling in .remove() 2022-06-22 13:39:36 +01:00
acp-sof-mach.c ASoC: amd: acp: Add support for rt5682s and rt1019 card with hs instance 2022-06-06 12:35:01 +01:00
amd.h ASoC: amd: acp: Add generic PCI driver module for ACP device 2022-01-28 15:59:31 +00:00
chip_offset_byte.h ASoC: amd: acp: Add ACP init()/deinit() callback for Renoir. 2022-01-28 15:59:32 +00:00
Kconfig ASoC: amd: acp: Add support for nau8825 and max98360 card 2022-06-06 12:35:00 +01:00
Makefile ASoC: amd: acp: Add generic PCI driver module for ACP device 2022-01-28 15:59:31 +00:00