Skip to contentSkip to conversation

ASoC: codecs: va-macro: Clean up on error path in probe()

PATCH In review Dan Carpenter 3 participants 3 messages Oct 18, 2025 – Oct 21, 2025

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: codecs: va-macro: Clean up on error path in probe()

Do some clean up before returning the error code.

Fixes 281c97376cfc ("ASoC: codecs: va-macro: Rework version checking")
---
 sound/soc/codecs/lpass-va-macro.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/lpass-va-macro.c +1 -1
index eb4981255f2b..77a372dfb117 100644
@@ -1632,7 +1632,7 @@ static int va_macro_probe(struct platform_device *pdev)
 		/* read version from register */
 		ret = va_macro_set_lpass_codec_version(va);
 		if (ret)
-			return ret;
+			goto err_clkout;
 	}
 
 	if (va->has_swr_master) {
Signature · 1 line
2.51.0
maintainer
#2 lore raw
In reply to Dan Carpenter
Quoted 3 lines · Dan Carpenter

Do some clean up before returning the error code.

Applied to

https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[1/1] ASoC: codecs: va-macro: Clean up on error path in probe()

      commit: 7e1906643a7374529af74b013bba35e4fa4e6ffc

All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying to this mail.

Thanks,
Mark