]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: rk3328: fix missing clk_disable_unprepare() on error in rk3328_platform_probe()
authorYang Yingliang <yangyingliang@huawei.com>
Tue, 18 May 2021 07:58:47 +0000 (15:58 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jul 2021 14:53:40 +0000 (16:53 +0200)
commite0d872073b9cf59f3d0421dfbc8062a21a06cef0
tree2d9b129542ba3573e307e61abb4b6a672794e54a
parente435f67651e841c553a30da5c27dd5f0449de930
ASoC: rk3328: fix missing clk_disable_unprepare() on error in rk3328_platform_probe()

[ Upstream commit d14eece945a8068a017995f7512ea2beac21e34b ]

Fix the missing clk_disable_unprepare() before return
from rk3328_platform_probe() in the error handling case.

Fixes: 2fba05b505d2 ("ASoC: rockchip: support ACODEC for rk3328")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20210518075847.1116983-1-yangyingliang@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/codecs/rk3328_codec.c