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 14:56:37 +0000 (16:56 +0200)
commitd4ebf352a7d7910c772977c7ef4f3697114809c8
treee763b693972637df6c57cb0380135dc5c5b181b7
parent2541d78f783237b9f92d1b562f594021e68b86c4
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