Commit d832b5a0 authored by Simon Trimmer's avatar Simon Trimmer Committed by Takashi Iwai

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: 4e7914eb ("ALSA: hda/tas2781: remove sound controls in unbind")
Signed-off-by: default avatarSimon Trimmer <simont@opensource.cirrus.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Link: https://lore.kernel.org/r/20240613133713.75550-4-simont@opensource.cirrus.com
parent 6f9a40d6
...@@ -777,11 +777,11 @@ static void tas2781_hda_remove(struct device *dev) ...@@ -777,11 +777,11 @@ static void tas2781_hda_remove(struct device *dev)
{ {
struct tas2781_hda *tas_hda = dev_get_drvdata(dev); struct tas2781_hda *tas_hda = dev_get_drvdata(dev);
component_del(tas_hda->dev, &tas2781_hda_comp_ops);
pm_runtime_get_sync(tas_hda->dev); pm_runtime_get_sync(tas_hda->dev);
pm_runtime_disable(tas_hda->dev); pm_runtime_disable(tas_hda->dev);
component_del(tas_hda->dev, &tas2781_hda_comp_ops);
pm_runtime_put_noidle(tas_hda->dev); pm_runtime_put_noidle(tas_hda->dev);
tasdevice_remove(tas_hda->priv); tasdevice_remove(tas_hda->priv);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment