OSDN Git Service

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)
committerMark Brown <broonie@kernel.org>
Mon, 28 Feb 2022 13:33:54 +0000 (13:33 +0000)
commited7c9fef11931fc5d32a83d68017ff390bf5c280
tree82f99f9fc6001b973a1b1d036bfc2c0bc86646d4
parentf948202284a1c86f09f880653962c9c71d5bc3a7
ASoC: ti: davinci-i2s: Add check for clk_enable()

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>
sound/soc/ti/davinci-i2s.c