diff options
author | Lihua Yao <ylhuajnu@163.com> | 2018-08-15 23:20:35 +0800 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2018-08-19 18:37:04 +0200 |
commit | 250ea7c5f56e350cdafebe6b87478b00db4f7af8 (patch) | |
tree | 29b14a2d61178af5b078875f3c300347bafce803 /sound/ac97/bus.c | |
parent | d15ec0b482ff502e4e19e43d15aa5072e4290199 (diff) | |
download | linux-250ea7c5f56e350cdafebe6b87478b00db4f7af8.tar.bz2 |
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/ac97/bus.c')
-rw-r--r-- | sound/ac97/bus.c | 2 |
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; } |