From: Lars-Peter Clausen Date: Thu, 28 Nov 2013 07:50:36 +0000 (+0100) Subject: ASoC: spear: Use devm_snd_dmaengine_pcm_register X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d71b3ef44f9e5cfda2499768f6420b784845af06;p=linux-beck.git ASoC: spear: Use devm_snd_dmaengine_pcm_register Makes the code slightly shorter. Signed-off-by: Lars-Peter Clausen Acked-by: Rajeev Kumar Signed-off-by: Mark Brown --- diff --git a/sound/soc/spear/spear_pcm.c b/sound/soc/spear/spear_pcm.c index 4707f2b862c3..9a02141666ea 100644 --- a/sound/soc/spear/spear_pcm.c +++ b/sound/soc/spear/spear_pcm.c @@ -49,18 +49,12 @@ static const struct snd_dmaengine_pcm_config spear_dmaengine_pcm_config = { static int spear_soc_platform_probe(struct platform_device *pdev) { - return snd_dmaengine_pcm_register(&pdev->dev, + return devm_snd_dmaengine_pcm_register(&pdev->dev, &spear_dmaengine_pcm_config, SND_DMAENGINE_PCM_FLAG_NO_DT | SND_DMAENGINE_PCM_FLAG_COMPAT); } -static int spear_soc_platform_remove(struct platform_device *pdev) -{ - snd_dmaengine_pcm_unregister(&pdev->dev); - return 0; -} - static struct platform_driver spear_pcm_driver = { .driver = { .name = "spear-pcm-audio", @@ -68,7 +62,6 @@ static struct platform_driver spear_pcm_driver = { }, .probe = spear_soc_platform_probe, - .remove = spear_soc_platform_remove, }; module_platform_driver(spear_pcm_driver);