Skip to content

Commit 721f2e6

Browse files
simontrimmertiwai
authored andcommitted
ALSA: hda: cs35l56: Component should be unbound before deconstruction
The interface associated with the hda_component should be deactivated before the driver is deconstructed during removal. Fixes: 73cfbfa ("ALSA: hda/cs35l56: Add driver for Cirrus Logic CS35L56 amplifier") Signed-off-by: Simon Trimmer <simont@opensource.cirrus.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Link: https://lore.kernel.org/r/20240613133713.75550-2-simont@opensource.cirrus.com
1 parent 2646b43 commit 721f2e6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sound/pci/hda/cs35l56_hda.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,12 +1077,12 @@ void cs35l56_hda_remove(struct device *dev)
10771077
{
10781078
struct cs35l56_hda *cs35l56 = dev_get_drvdata(dev);
10791079

1080+
component_del(cs35l56->base.dev, &cs35l56_hda_comp_ops);
1081+
10801082
pm_runtime_dont_use_autosuspend(cs35l56->base.dev);
10811083
pm_runtime_get_sync(cs35l56->base.dev);
10821084
pm_runtime_disable(cs35l56->base.dev);
10831085

1084-
component_del(cs35l56->base.dev, &cs35l56_hda_comp_ops);
1085-
10861086
cs_dsp_remove(&cs35l56->cs_dsp);
10871087

10881088
kfree(cs35l56->system_name);

0 commit comments

Comments
 (0)