ALSA: spi: Add check for clk_enable()
authorJiasheng Jiang <jiasheng@iscas.ac.cn>
Mon, 28 Feb 2022 02:28:39 +0000 (10:28 +0800)
committerTakashi Iwai <tiwai@suse.de>
Mon, 28 Feb 2022 16:00:10 +0000 (17:00 +0100)
commitca1697eb09208f0168d94b88b72f57505339cbe5
tree0aec0e1980d3cbc10132f26a243357c6062d72ad
parenta544684b790f3e9f75173b3b42d7dad1c89dd237
ALSA: spi: 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: 3568459a5113 ("ALSA: at73c213: manage SSC clock")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Link: https://lore.kernel.org/r/20220228022839.3547266-1-jiasheng@iscas.ac.cn
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/spi/at73c213.c