ASoC: ti: davinci-i2s: Add check for clk_enable()
authorJiasheng Jiang <jiasheng@iscas.ac.cn>
Mon, 28 Feb 2022 03:15:40 +0000 (11:15 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 12:23:19 +0000 (14:23 +0200)
commit89676d9e8c84f705ca30c9c03d78d1f1f635bf03
tree4158907e4eb71ad1feb71479ac4434e93f37b931
parent0a96bff46a5e55e2e0f7f254016343460ff24ab5
ASoC: ti: davinci-i2s: Add check for clk_enable()

[ Upstream commit ed7c9fef11931fc5d32a83d68017ff390bf5c280 ]

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

Fixes: 5f9a50c3e55e ("ASoC: Davinci: McBSP: add device tree support for McBSP")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Acked-by: Peter Ujfalusi <peter.ujfalusi@gmail.com>
Link: https://lore.kernel.org/r/20220228031540.3571959-1-jiasheng@iscas.ac.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/ti/davinci-i2s.c