mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
ALSA: ac97: fix unbalanced pm_runtime_enable
Runtime PM is enabled at ac97_bus_probe() and should be disabled
at ac97_bus_remove().
Fixes: 74426fbff6 ("ALSA: ac97: add an ac97 bus")
Signed-off-by: Lihua Yao <[email protected]>
Acked-by: Robert Jarzmik <[email protected]>
Cc: <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
This commit is contained in:
parent
d15ec0b482
commit
250ea7c5f5
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue