ASoC: max98088: Check for clk_prepare_enable() error
authorChen Ni <nichen@iscas.ac.cn>
Fri, 28 Jun 2024 08:05:34 +0000 (16:05 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 28 Jun 2024 12:39:31 +0000 (13:39 +0100)
commit1a70579723fde3624a72dfea6e79e55be6e36659
treee017eef23aa8ce7c82bd6889fada347ea751b9ef
parent061505a1a61169bd25dd908f95ba22f33dffdd69
ASoC: max98088: Check for clk_prepare_enable() error

clk_prepare_enable() may fail, so we should better check its return
value and propagate it in the case of error.

Fixes: 62a7fc32a628 ("ASoC: max98088: Add master clock handling")
Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
Link: https://patch.msgid.link/20240628080534.843815-1-nichen@iscas.ac.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/max98088.c