Skip to content

Commit

Permalink
ALSA: ac97: fix unbalanced pm_runtime_enable
Browse files Browse the repository at this point in the history
Runtime PM is enabled at ac97_bus_probe() and should be disabled
at ac97_bus_remove().

Fixes: 74426fb ("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]>
  • Loading branch information
Lihua Yao authored and tiwai committed Aug 19, 2018
1 parent d15ec0b commit 250ea7c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sound/ac97/bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 250ea7c

Please sign in to comment.