ASoC: sti: fix missing clk_disable_unprepare() on error in uni_player_start()

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

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Wei Yongjun 2016-09-17 01:34:33 +00:00 committed by Mark Brown
parent 04adc0842f
commit b7c8c5d692

View file

@ -893,8 +893,10 @@ static int uni_player_start(struct uniperif *player)
SET_UNIPERIF_SOFT_RST_SOFT_RST(player);
ret = reset_player(player);
if (ret < 0)
if (ret < 0) {
clk_disable_unprepare(player->clk);
return ret;
}
/*
* Does not use IEC61937 features of the uniperipheral hardware.