ALSA: ac97: fix unbalanced pm_runtime_enable
authorLihua Yao <ylhuajnu@163.com>
Wed, 15 Aug 2018 15:20:35 +0000 (23:20 +0800)
committerTakashi Iwai <tiwai@suse.de>
Sun, 19 Aug 2018 16:37:04 +0000 (18:37 +0200)
commit250ea7c5f56e350cdafebe6b87478b00db4f7af8
tree29b14a2d61178af5b078875f3c300347bafce803
parentd15ec0b482ff502e4e19e43d15aa5072e4290199
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>
sound/ac97/bus.c