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

Commit 4ed0d012 authored by Axel Lin's avatar Axel Lin Committed by Mark Brown
Browse files

ASoC: Add missing platform_device_put in raumfeld_audio_init error path

parent 7b4615ba
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -306,8 +306,10 @@ static int __init raumfeld_audio_init(void)
				     &snd_soc_raumfeld_connector);

	ret = platform_device_add(raumfeld_audio_device);
	if (ret < 0)
	if (ret < 0) {
		platform_device_put(raumfeld_audio_device);
		return ret;
	}

	raumfeld_enable_audio(true);
	return 0;