mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-07-10 19:35:21 +02:00
ALSA: hda: cs35l56: Component should be unbound before deconstruction
[ Upstream commit721f2e6653
] The interface associated with the hda_component should be deactivated before the driver is deconstructed during removal. Fixes:73cfbfa9ca
("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 Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
08fa10b265
commit
8be82acd4e
|
@ -1021,12 +1021,12 @@ void cs35l56_hda_remove(struct device *dev)
|
|||
{
|
||||
struct cs35l56_hda *cs35l56 = dev_get_drvdata(dev);
|
||||
|
||||
component_del(cs35l56->base.dev, &cs35l56_hda_comp_ops);
|
||||
|
||||
pm_runtime_dont_use_autosuspend(cs35l56->base.dev);
|
||||
pm_runtime_get_sync(cs35l56->base.dev);
|
||||
pm_runtime_disable(cs35l56->base.dev);
|
||||
|
||||
component_del(cs35l56->base.dev, &cs35l56_hda_comp_ops);
|
||||
|
||||
cs_dsp_remove(&cs35l56->cs_dsp);
|
||||
|
||||
kfree(cs35l56->system_name);
|
||||
|
|
Loading…
Reference in New Issue
Block a user