ASoC: cs42l56: Fix the error handling of cs42l56_i2c_probe()
authorZheyu Ma <zheyuma97@gmail.com>
Wed, 11 May 2022 01:55:14 +0000 (09:55 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 11 May 2022 16:42:12 +0000 (17:42 +0100)
commit1a9fa95447bba1704b7d701ad08988e15b28aba6
tree216128ee044fd16454cb22d6a79557b7cefd932a
parented46731d8e86c8d65f5fc717671e1f1f6c3146d2
ASoC: cs42l56: Fix the error handling of cs42l56_i2c_probe()

The driver should goto label 'err_enable' when failing at regmap_read().

Signed-off-by: Zheyu Ma <zheyuma97@gmail.com>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20220511015514.1777923-1-zheyuma97@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs42l56.c