ASoC: atmel_ssc_dai: Handle errors for clk_enable
authorJiasheng Jiang <jiasheng@iscas.ac.cn>
Tue, 1 Mar 2022 09:06:37 +0000 (17:06 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 2 Mar 2022 13:45:22 +0000 (13:45 +0000)
commitf9e2ca0640e59d19af0ff285ee5591ed39069b09
tree9ea8b9ad546988402c34d3c416d789a7e44a48f5
parent2ecf362d220317debf5da376e0390e9f7a3f7b29
ASoC: atmel_ssc_dai: Handle errors for clk_enable

As the potential failure of the clk_enable(),
it should be better to check it and return error if fals.

Fixes: cbaadf0f90d6 ("ASoC: atmel_ssc_dai: refactor the startup and shutdown")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Link: https://lore.kernel.org/r/20220301090637.3776558-1-jiasheng@iscas.ac.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/atmel/atmel_ssc_dai.c