Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 821ebc86 authored by Roel Kluin's avatar Roel Kluin Committed by Mark Brown
Browse files

ASoC: free socdev if init_card() fails in wm9705_soc_probe()



Free socdev if snd_soc_init_card() fails.

Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 79fb9387
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -406,7 +406,7 @@ static int wm9705_soc_probe(struct platform_device *pdev)
	ret = snd_soc_init_card(socdev);
	if (ret < 0) {
		printk(KERN_ERR "wm9705: failed to register card\n");
		goto pcm_err;
		goto reset_err;
	}

	return 0;