ALSA: hda: cs35l56: Call pm_runtime_dont_use_autosuspend()
Driver remove() must call pm_runtime_dont_use_autosuspend().
Drivers that call pm_runtime_use_autosuspend() must disable
it in driver remove(). Unfortunately until recently this was
only mentioned in 1 line in a 900+ line document so most
people hadn't noticed this. It has only recently been added
to the kerneldoc of pm_runtime_use_autosuspend().
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Fixes: 73cfbfa9ca
("ALSA: hda/cs35l56: Add driver for Cirrus Logic CS35L56 amplifier")
Link: https://lore.kernel.org/r/20230908101223.2656901-1-rf@opensource.cirrus.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
61ba93b435
commit
caaaa34eff
|
@ -1003,6 +1003,7 @@ void cs35l56_hda_remove(struct device *dev)
|
||||||
{
|
{
|
||||||
struct cs35l56_hda *cs35l56 = dev_get_drvdata(dev);
|
struct cs35l56_hda *cs35l56 = dev_get_drvdata(dev);
|
||||||
|
|
||||||
|
pm_runtime_dont_use_autosuspend(cs35l56->base.dev);
|
||||||
pm_runtime_get_sync(cs35l56->base.dev);
|
pm_runtime_get_sync(cs35l56->base.dev);
|
||||||
pm_runtime_disable(cs35l56->base.dev);
|
pm_runtime_disable(cs35l56->base.dev);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue