]> git.baikalelectronics.ru Git - kernel.git/commit
ASoc: rockchip: i2s: Fix RPM imbalance
authorRobin Murphy <robin.murphy@arm.com>
Wed, 2 Oct 2019 15:30:37 +0000 (16:30 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 3 Oct 2019 13:32:13 +0000 (14:32 +0100)
commit5197e67906f78ca4e7ca06993f16904ab56ea0c3
tree04419b7ae4e1dc13e4665de58fd61aef9b904663
parent0b07ab5b6a521277e387cb74eb819af830149306
ASoc: rockchip: i2s: Fix RPM imbalance

If rockchip_pcm_platform_register() fails, e.g. upon deferring to wait
for an absent DMA channel, we return without disabling RPM, which makes
subsequent re-probe attempts scream with errors about the unbalanced
enable. Don't do that.

Fixes: b82917547947 ("ASoC: rockchip: i2s: Adjust devm usage")
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Link: https://lore.kernel.org/r/bcb12a849a05437fb18372bc7536c649b94bdf07.1570029862.git.robin.murphy@arm.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/rockchip/rockchip_i2s.c