ASoC: hisilicon: fix missing clk_disable_unprepare() on error in hi6210_i2s_startup()
authorYang Yingliang <yangyingliang@huawei.com>
Tue, 18 May 2021 04:45:14 +0000 (12:45 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jul 2021 15:07:30 +0000 (17:07 +0200)
commitbed4f1f93767aade738019b69a492699b8ec4e6a
tree2489e5cd53bc0e4de86e98072e8ce2d2e66bf9a5
parent4f662271fc5b1cd441e81008084a9fd6a9279b5a
ASoC: hisilicon: fix missing clk_disable_unprepare() on error in hi6210_i2s_startup()

[ Upstream commit 375904e3931955fcf0a847f029b2492a117efc43 ]

After calling clk_prepare_enable(), clk_disable_unprepare() need
be called when calling clk_set_rate() failed.

Fixes: 0bf750f4cbe1 ("ASoC: hisilicon: Add hi6210 i2s audio driver")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20210518044514.607010-1-yangyingliang@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/hisilicon/hi6210-i2s.c