提交 6cbcad07 编写于 作者: K Kuninori Morimoto 提交者: Mark Brown

ASoC: wm8524: remove unnecessary snd_soc_unregister_platform()

wm8524 doesn't register platform, unregister platform is not needed
Signed-off-by: NKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 80bfd043
...@@ -233,10 +233,8 @@ static int wm8524_codec_probe(struct platform_device *pdev) ...@@ -233,10 +233,8 @@ static int wm8524_codec_probe(struct platform_device *pdev)
ret = snd_soc_register_codec(&pdev->dev, ret = snd_soc_register_codec(&pdev->dev,
&soc_codec_dev_wm8524, &wm8524_dai, 1); &soc_codec_dev_wm8524, &wm8524_dai, 1);
if (ret < 0) { if (ret < 0)
dev_err(&pdev->dev, "Failed to register codec: %d\n", ret); dev_err(&pdev->dev, "Failed to register codec: %d\n", ret);
snd_soc_unregister_platform(&pdev->dev);
}
return ret; return ret;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册