commit | 6d13f62d931ba638e54ba56f3a7dd3080ffb485a | [log] [tgz] |
---|---|---|
author | Lukas Wunner <lukas@wunner.de> | Thu Oct 20 12:26:16 2016 +0200 |
committer | Mark Brown <broonie@kernel.org> | Mon Oct 24 17:50:53 2016 +0100 |
tree | 74a3733042ed5fc08f2147e0bef0fa758592cd7a | |
parent | 4690481060f3c6b557b01f18319c6382f0fd63ab [diff] |
ASoC: Intel: Skylake: Always acquire runtime pm ref on unload skl_probe() releases a runtime pm ref unconditionally wheras skl_remove() acquires one only if the device is wakeup capable. Thus if the device is not wakeup capable, unloading and reloading the module will result in the refcount being decreased below 0. Fix it. Fixes: d8c2dab8381d ("ASoC: Intel: Add Skylake HDA audio driver") Signed-off-by: Lukas Wunner <lukas@wunner.de> Signed-off-by: Mark Brown <broonie@kernel.org>