summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorLihua Yao <ylhuajnu@163.com>2018-08-15 18:20:35 +0300
committerTakashi Iwai <tiwai@suse.de>2018-08-19 19:37:04 +0300
commit250ea7c5f56e350cdafebe6b87478b00db4f7af8 (patch)
tree29b14a2d61178af5b078875f3c300347bafce803 /sound
parentd15ec0b482ff502e4e19e43d15aa5072e4290199 (diff)
downloadlinux-250ea7c5f56e350cdafebe6b87478b00db4f7af8.tar.xz
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;
}