summaryrefslogtreecommitdiffstats
path: root/kernel/sound/soc/pxa/palm27x.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sound/soc/pxa/palm27x.c')
-rw-r--r--kernel/sound/soc/pxa/palm27x.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/kernel/sound/soc/pxa/palm27x.c b/kernel/sound/soc/pxa/palm27x.c
index c20bbc042..4e74d9573 100644
--- a/kernel/sound/soc/pxa/palm27x.c
+++ b/kernel/sound/soc/pxa/palm27x.c
@@ -140,22 +140,15 @@ static int palm27x_asoc_probe(struct platform_device *pdev)
palm27x_asoc.dev = &pdev->dev;
- ret = snd_soc_register_card(&palm27x_asoc);
+ ret = devm_snd_soc_register_card(&pdev->dev, &palm27x_asoc);
if (ret)
dev_err(&pdev->dev, "snd_soc_register_card() failed: %d\n",
ret);
return ret;
}
-static int palm27x_asoc_remove(struct platform_device *pdev)
-{
- snd_soc_unregister_card(&palm27x_asoc);
- return 0;
-}
-
static struct platform_driver palm27x_wm9712_driver = {
.probe = palm27x_asoc_probe,
- .remove = palm27x_asoc_remove,
.driver = {
.name = "palm27x-asoc",
.pm = &snd_soc_pm_ops,