Skip to content

Commit 6f9a40d

Browse files
simontrimmertiwai
authored andcommitted
ALSA: hda: cs35l41: Component should be unbound before deconstruction
The interface associated with the hda_component should be deactivated before the driver is deconstructed during removal. Fixes: 7b2f3eb ("ALSA: hda: cs35l41: Add support for CS35L41 in HDA systems") Signed-off-by: Simon Trimmer <[email protected]> Signed-off-by: Takashi Iwai <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 721f2e6 commit 6f9a40d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sound/pci/hda/cs35l41_hda.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2019,15 +2019,15 @@ void cs35l41_hda_remove(struct device *dev)
20192019
{
20202020
struct cs35l41_hda *cs35l41 = dev_get_drvdata(dev);
20212021

2022+
component_del(cs35l41->dev, &cs35l41_hda_comp_ops);
2023+
20222024
pm_runtime_get_sync(cs35l41->dev);
20232025
pm_runtime_dont_use_autosuspend(cs35l41->dev);
20242026
pm_runtime_disable(cs35l41->dev);
20252027

20262028
if (cs35l41->halo_initialized)
20272029
cs35l41_remove_dsp(cs35l41);
20282030

2029-
component_del(cs35l41->dev, &cs35l41_hda_comp_ops);
2030-
20312031
acpi_dev_put(cs35l41->dacpi);
20322032

20332033
pm_runtime_put_noidle(cs35l41->dev);

0 commit comments

Comments
 (0)