Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b7c8c5d6 authored by Wei Yongjun's avatar Wei Yongjun Committed by Mark Brown
Browse files

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: default avatarWei Yongjun <weiyongjun1@huawei.com>
Acked-by: default avatarArnaud Pouliquen <arnaud.pouliquen@st.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 04adc084
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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.