ALSA: hda: cs35l41: Component should be unbound before deconstruction
BugLink: https://bugs.launchpad.net/bugs/2075154
[ Upstream commit 6f9a40d61cad0f5560e8530b4dd4a05fc4d15987 ]
The interface associated with the hda_component should be deactivated
before the driver is deconstructed during removal.
Fixes: 7b2f3eb492 ("ALSA: hda: cs35l41: Add support for CS35L41 in HDA systems")
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-3-simont@opensource.cirrus.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Manuel Diewald <manuel.diewald@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Roxana Nicolescu <roxana.nicolescu@canonical.com>
This commit is contained in:
committed by
Roxana Nicolescu
parent
8430e32be4
commit
e9e0235742
@@ -1857,6 +1857,8 @@ void cs35l41_hda_remove(struct device *dev)
|
||||
{
|
||||
struct cs35l41_hda *cs35l41 = dev_get_drvdata(dev);
|
||||
|
||||
component_del(cs35l41->dev, &cs35l41_hda_comp_ops);
|
||||
|
||||
pm_runtime_get_sync(cs35l41->dev);
|
||||
pm_runtime_dont_use_autosuspend(cs35l41->dev);
|
||||
pm_runtime_disable(cs35l41->dev);
|
||||
@@ -1864,8 +1866,6 @@ void cs35l41_hda_remove(struct device *dev)
|
||||
if (cs35l41->halo_initialized)
|
||||
cs35l41_remove_dsp(cs35l41);
|
||||
|
||||
component_del(cs35l41->dev, &cs35l41_hda_comp_ops);
|
||||
|
||||
acpi_dev_put(cs35l41->dacpi);
|
||||
|
||||
pm_runtime_put_noidle(cs35l41->dev);
|
||||
|
||||
Reference in New Issue
Block a user