Fix PM disable depth imbalance in probe
authorMark Brown <broonie@kernel.org>
Fri, 30 Sep 2022 08:15:58 +0000 (09:15 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 30 Sep 2022 08:15:58 +0000 (09:15 +0100)
commitd488b28502d7c22b1b50f0543da119748e575919
tree3918e88ca8fd6c7ff1ef8bbeb9c6d4aeafa41e4d
parentc8d18e44022518ab026338ae86bf14cdf2e71887
parentb73f11e895e140537e7f8c7251211ccd3ce0782b
Fix PM disable depth imbalance in probe

Merge series from Zhang Qilong <zhangqilong3@huawei.com>:

The pm_runtime_enable will increase power disable depth. Thus
a pairing decrement is needed on the error handling path to
keep it balanced according to context. We fix it by moving
pm_runtime_enable to the endding of probe.

Zhang Qilong (4):
  ASoC: wm8997: Fix PM disable depth imbalance in wm8997_probe
  ASoC: wm5110: Fix PM disable depth imbalance in wm5110_probe
  ASoC: wm5102: Fix PM disable depth imbalance in wm5102_probe
  ASoC: mt6660: Fix PM disable depth imbalance in mt6660_i2c_probe

 sound/soc/codecs/mt6660.c | 8 ++++++--
 sound/soc/codecs/wm5102.c | 6 +++---
 sound/soc/codecs/wm5110.c | 6 +++---
 sound/soc/codecs/wm8997.c | 6 +++---
 4 files changed, 15 insertions(+), 11 deletions(-)

--
2.25.1