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

ASoC: Intel: Skylake: Convert to devm_snd_soc_register_card

Signed-off-by: NAxel Lin <axel.lin@ingics.com>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 ba40a854
......@@ -240,18 +240,11 @@ static int skylake_audio_probe(struct platform_device *pdev)
{
skylake_rt286.dev = &pdev->dev;
return snd_soc_register_card(&skylake_rt286);
}
static int skylake_audio_remove(struct platform_device *pdev)
{
snd_soc_unregister_card(&skylake_rt286);
return 0;
return devm_snd_soc_register_card(&pdev->dev, &skylake_rt286);
}
static struct platform_driver skylake_audio = {
.probe = skylake_audio_probe,
.remove = skylake_audio_remove,
.driver = {
.name = "skl_alc286s_i2s",
},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
新手
引导
客服 返回
顶部