提交 e1290910 编写于 作者: A Axel Lin 提交者: Mark Brown

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: NAxel Lin <axel.lin@ingics.com>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 36cc0935
...@@ -224,7 +224,7 @@ static int sti_uniperiph_probe(struct platform_device *pdev) ...@@ -224,7 +224,7 @@ static int sti_uniperiph_probe(struct platform_device *pdev)
dev_set_drvdata(&pdev->dev, priv); 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, &sti_uniperiph_dai_component,
priv->dai, 1); priv->dai, 1);
if (ret < 0) if (ret < 0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册