summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorLihua Yao <ylhuajnu@163.com>2018-08-15 17:20:35 +0200
committerTakashi Iwai <tiwai@suse.de>2018-08-19 18:37:04 +0200
commit250ea7c5f56e350cdafebe6b87478b00db4f7af8 (patch)
tree29b14a2d61178af5b078875f3c300347bafce803 /sound
parentALSA: ac97: fix check of pm_runtime_get_sync failure (diff)
downloadlinux-250ea7c5f56e350cdafebe6b87478b00db4f7af8.tar.xz
linux-250ea7c5f56e350cdafebe6b87478b00db4f7af8.zip
ALSA: ac97: fix unbalanced pm_runtime_enable
Runtime PM is enabled at ac97_bus_probe() and should be disabled at ac97_bus_remove(). Fixes: 74426fbff66e ("ALSA: ac97: add an ac97 bus") Signed-off-by: Lihua Yao <ylhuajnu@163.com> Acked-by: Robert Jarzmik <robert.jarzmik@free.fr> Cc: <stable@vger.kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r--sound/ac97/bus.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/ac97/bus.c b/sound/ac97/bus.c
index 640812cb2152..9f0c480489ef 100644
--- a/sound/ac97/bus.c
+++ b/sound/ac97/bus.c
@@ -537,6 +537,8 @@ static int ac97_bus_remove(struct device *dev)
if (ret == 0)
ac97_put_disable_clk(adev);
+ pm_runtime_disable(dev);
+
return ret;
}