ASoC: wm8960: Fix error handling in probe
authorGuenter Roeck <linux@roeck-us.net>
Sat, 9 Sep 2023 12:02:37 +0000 (05:02 -0700)
committerMark Brown <broonie@kernel.org>
Mon, 11 Sep 2023 00:23:55 +0000 (01:23 +0100)
commitd7e47e32192bb88f5b2dc8e655fa587ecf9d71e0
tree245c4e2d63ff11ac7610bbb6c3bcb8cfafe31fa3
parent28115b1c4f2bb76e786436bf6597c5eb27638a5c
ASoC: wm8960: Fix error handling in probe

Commit 422f10adc3eb ("ASoC: wm8960: Add support for the power supplies")
added regulator support to the wm8960 driver, but neglected to update
error handling in the probe function. This results in warning backtraces
if the probe function fails.

Fixes: 422f10adc3eb ("ASoC: wm8960: Add support for the power supplies")
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Fabio Estevam <festevam@denx.de>
Link: https://lore.kernel.org/r/20230909120237.2646275-1-linux@roeck-us.net
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm8960.c