]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: dwc-i2s: Handle errors for clk_enable
authorJiasheng Jiang <jiasheng@iscas.ac.cn>
Tue, 1 Mar 2022 08:47:42 +0000 (16:47 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 11:57:50 +0000 (13:57 +0200)
commitcabd6051d913ae473a9d00f17cbdffc1255f025d
treed5451618fc20bb16f1e83662d3aa711e3bfcb7fa
parent63c71e5e677fb20f2e2f1d1014bd4a7ffde78a9b
ASoC: dwc-i2s: Handle errors for clk_enable

[ Upstream commit 45ea97d74313bae681328b0c36fa348036777644 ]

As the potential failure of the clk_enable(),
it should be better to check it, as same as clk_prepare_enable().

Fixes: c9afc1834e81 ("ASoC: dwc: Disallow building designware_pcm as a module")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Link: https://lore.kernel.org/r/20220301084742.3751939-1-jiasheng@iscas.ac.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/dwc/dwc-i2s.c