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

Commit 6cbcad07 authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Mark Brown
Browse files

ASoC: wm8524: remove unnecessary snd_soc_unregister_platform()



wm8524 doesn't register platform, unregister platform is not needed

Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 80bfd043
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -233,10 +233,8 @@ static int wm8524_codec_probe(struct platform_device *pdev)

	ret =  snd_soc_register_codec(&pdev->dev,
			&soc_codec_dev_wm8524, &wm8524_dai, 1);
	if (ret < 0) {
	if (ret < 0)
		dev_err(&pdev->dev, "Failed to register codec: %d\n", ret);
		snd_soc_unregister_platform(&pdev->dev);
	}

	return ret;
}