Skip to content

Commit d832b5a

Browse files
simontrimmertiwai
authored andcommitted
ALSA: hda: tas2781: Component should be unbound before deconstruction
The interface associated with the hda_component should be deactivated before the driver is deconstructed during removal. Fixes: 4e7914e ("ALSA: hda/tas2781: remove sound controls in unbind") Signed-off-by: Simon Trimmer <[email protected]> Signed-off-by: Takashi Iwai <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 6f9a40d commit d832b5a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sound/pci/hda/tas2781_hda_i2c.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -777,11 +777,11 @@ static void tas2781_hda_remove(struct device *dev)
777777
{
778778
struct tas2781_hda *tas_hda = dev_get_drvdata(dev);
779779

780+
component_del(tas_hda->dev, &tas2781_hda_comp_ops);
781+
780782
pm_runtime_get_sync(tas_hda->dev);
781783
pm_runtime_disable(tas_hda->dev);
782784

783-
component_del(tas_hda->dev, &tas2781_hda_comp_ops);
784-
785785
pm_runtime_put_noidle(tas_hda->dev);
786786

787787
tasdevice_remove(tas_hda->priv);

0 commit comments

Comments
 (0)