summaryrefslogtreecommitdiffstats
path: root/kernel/sound/soc/blackfin/bfin-eval-adau1373.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sound/soc/blackfin/bfin-eval-adau1373.c')
-rw-r--r--kernel/sound/soc/blackfin/bfin-eval-adau1373.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/kernel/sound/soc/blackfin/bfin-eval-adau1373.c b/kernel/sound/soc/blackfin/bfin-eval-adau1373.c
index 523baf582..72ac78988 100644
--- a/kernel/sound/soc/blackfin/bfin-eval-adau1373.c
+++ b/kernel/sound/soc/blackfin/bfin-eval-adau1373.c
@@ -154,16 +154,7 @@ static int bfin_eval_adau1373_probe(struct platform_device *pdev)
card->dev = &pdev->dev;
- return snd_soc_register_card(&bfin_eval_adau1373);
-}
-
-static int bfin_eval_adau1373_remove(struct platform_device *pdev)
-{
- struct snd_soc_card *card = platform_get_drvdata(pdev);
-
- snd_soc_unregister_card(card);
-
- return 0;
+ return devm_snd_soc_register_card(&pdev->dev, &bfin_eval_adau1373);
}
static struct platform_driver bfin_eval_adau1373_driver = {
@@ -172,7 +163,6 @@ static struct platform_driver bfin_eval_adau1373_driver = {
.pm = &snd_soc_pm_ops,
},
.probe = bfin_eval_adau1373_probe,
- .remove = bfin_eval_adau1373_remove,
};
module_platform_driver(bfin_eval_adau1373_driver);