linux-stable/sound/soc/stm
Zhang Qilong 5b31c9f101 ASoC: stm: Fix PM disable depth imbalance in stm32_i2s_probe
[ Upstream commit 93618e5e05 ]

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 stm32_i2s_probe.

Fixes:32a956a1fadf ("ASoC: stm32: i2s: add pm_runtime support")

Signed-off-by: Zhang Qilong <zhangqilong3@huawei.com>
Reviewed-by: Olivier Moysan <olivier.moysan@foss.st.com>
Link: https://lore.kernel.org/r/20220927142640.64647-1-zhangqilong3@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-10-21 12:38:30 +02:00
..
Kconfig ASoC: stm: depend on COMMON_CLK to fix compile tests 2020-11-23 20:39:48 +00:00
Makefile ASoC: stm32: add DFSDM DAI support 2018-01-10 10:52:05 +00:00
stm32_adfsdm.c ASoC: stm32: dfsdm: Fix PM disable depth imbalance in stm32_adfsdm_probe 2022-10-21 12:38:29 +02:00
stm32_i2s.c ASoC: stm: Fix PM disable depth imbalance in stm32_i2s_probe 2022-10-21 12:38:30 +02:00
stm32_sai.c ASoC: stm: Use dev_err_probe() helper 2021-12-20 12:47:23 +00:00
stm32_sai.h Linux 5.2-rc6 2019-06-26 12:39:34 +01:00
stm32_sai_sub.c ASoC: stm32: Migrate to new style legacy DAI naming flag 2022-06-27 13:16:20 +01:00
stm32_spdifrx.c ASoC: stm32: spdifrx: Fix PM disable depth imbalance in stm32_spdifrx_probe 2022-10-21 12:38:29 +02:00