]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: mediatek: mt8192:Fix Unbalanced pm_runtime_enable in mt8192_afe_pcm_dev_probe
authorZhang Qilong <zhangqilong3@huawei.com>
Fri, 18 Jun 2021 14:11:03 +0000 (22:11 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Sep 2021 08:00:36 +0000 (10:00 +0200)
commit2b09ae7642ae4d305e1afe68875485d6becf5cfc
tree4d0ea329374510a259b2f307177a7a57ebad9691
parentda307e9c9e4d04e082a580e84d604fd815b415ef
ASoC: mediatek: mt8192:Fix Unbalanced pm_runtime_enable in mt8192_afe_pcm_dev_probe

[ Upstream commit 2af2f861edd21c1456ef7dbec52122ce1b581568 ]

Add missing pm_runtime_disable() when probe error out. It could
avoid pm_runtime implementation complains when removing and probing
again the driver.

Fixes:125ab5d588b0b ("ASoC: mediatek: mt8192: add platform driver")

Signed-off-by: Zhang Qilong <zhangqilong3@huawei.com>
Link: https://lore.kernel.org/r/20210618141104.105047-2-zhangqilong3@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/mediatek/mt8192/mt8192-afe-pcm.c