mbox series

[-next,0/2] Fix PM disable depth imbalance in stm32 probe

Message ID 20220926141132.124245-1-zhangqilong3@huawei.com (mailing list archive)
Headers show
Series Fix PM disable depth imbalance in stm32 probe | expand

Message

Zhang Qilong Sept. 26, 2022, 2:11 p.m. UTC
The pm_runtime_enable will increase power disable depth. Thus
a pairing decrement is needed on the error handling path to
keep it balanced. We fix it by moving pm_runtime_enable to the
endding of probe.

Zhang Qilong (2):
  ASoC: stm32: dfsdm: Fix PM disable depth imbalance in
    stm32_adfsdm_probe
  ASoC: stm32: spdifrx: Fix PM disable depth imbalance in
    stm32_spdifrx_probe

 sound/soc/stm/stm32_adfsdm.c  | 8 +++++---
 sound/soc/stm/stm32_spdifrx.c | 4 ++--
 2 files changed, 7 insertions(+), 5 deletions(-)