Commit 5fb7680b authored by Sachin Kamat's avatar Sachin Kamat Committed by Mark Brown

ASoC: SPEAr spdif_in: Use devm_snd_soc_register_component

devm_snd_soc_register_component makes code simpler.
Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Acked-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 272b98c6
......@@ -257,20 +257,12 @@ static int spdif_in_probe(struct platform_device *pdev)
return ret;
}
return snd_soc_register_component(&pdev->dev, &spdif_in_component,
&spdif_in_dai, 1);
}
static int spdif_in_remove(struct platform_device *pdev)
{
snd_soc_unregister_component(&pdev->dev);
return 0;
return devm_snd_soc_register_component(&pdev->dev, &spdif_in_component,
&spdif_in_dai, 1);
}
static struct platform_driver spdif_in_driver = {
.probe = spdif_in_probe,
.remove = spdif_in_remove,
.driver = {
.name = "spdif-in",
.owner = THIS_MODULE,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment