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

Commit 497d4965 authored by Axel Lin's avatar Axel Lin Committed by Mark Brown
Browse files

ASoC: Fix hx4700 error handling to free gpios if snd_soc_register_card fails

parent 62e4a13e
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -209,9 +209,10 @@ static int __devinit hx4700_audio_probe(struct platform_device *pdev)
	snd_soc_card_hx4700.dev = &pdev->dev;
	ret = snd_soc_register_card(&snd_soc_card_hx4700);
	if (ret)
		return ret;
		gpio_free_array(hx4700_audio_gpios,
				ARRAY_SIZE(hx4700_audio_gpios));

	return 0;
	return ret;
}

static int __devexit hx4700_audio_remove(struct platform_device *pdev)