ASoC: intel: broadwell: Convert to devm_snd_soc_register_card
Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
6ff33f3902
commit
9ed747641b
|
@ -266,18 +266,11 @@ static int broadwell_audio_probe(struct platform_device *pdev)
|
|||
{
|
||||
broadwell_rt286.dev = &pdev->dev;
|
||||
|
||||
return snd_soc_register_card(&broadwell_rt286);
|
||||
}
|
||||
|
||||
static int broadwell_audio_remove(struct platform_device *pdev)
|
||||
{
|
||||
snd_soc_unregister_card(&broadwell_rt286);
|
||||
return 0;
|
||||
return devm_snd_soc_register_card(&pdev->dev, &broadwell_rt286);
|
||||
}
|
||||
|
||||
static struct platform_driver broadwell_audio = {
|
||||
.probe = broadwell_audio_probe,
|
||||
.remove = broadwell_audio_remove,
|
||||
.driver = {
|
||||
.name = "broadwell-audio",
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue