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

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

ASoC: sti_uniperif: Ensure component is unregistered when unload module



Use devm_snd_soc_register_component to ensure component is unregistered
when unload the module.

Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 36cc0935
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -224,7 +224,7 @@ static int sti_uniperiph_probe(struct platform_device *pdev)

	dev_set_drvdata(&pdev->dev, priv);

	ret = snd_soc_register_component(&pdev->dev,
	ret = devm_snd_soc_register_component(&pdev->dev,
					      &sti_uniperiph_dai_component,
					      priv->dai, 1);
	if (ret < 0)