ASoC: msm8916-wcd-digital: Check failure for devm_snd_soc_register_component
authorMiaoqian Lin <linmq006@gmail.com>
Sun, 3 Apr 2022 11:52:39 +0000 (11:52 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Apr 2022 11:39:42 +0000 (13:39 +0200)
commit43f796096da57d9a42f5a366c3839002f795df1e
tree72ae7334d0a41a9c6f4efd957fa1d95a541644f1
parent6eb9b4a36d08da0230e6a7712b17eafdfd996991
ASoC: msm8916-wcd-digital: Check failure for devm_snd_soc_register_component

[ Upstream commit e927b05f3cc20de87f6b7d912a5bbe556931caca ]

devm_snd_soc_register_component() may fails, we should check the error
and do the corresponding error handling.

Fixes: 150db8c5afa1 ("ASoC: codecs: Add msm8916-wcd digital codec")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Link: https://lore.kernel.org/r/20220403115239.30140-1-linmq006@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/codecs/msm8916-wcd-digital.c