summaryrefslogtreecommitdiffstats
path: root/sound/soc/samsung/idma.c
diff options
context:
space:
mode:
authorTushar Behera <tushar.behera@linaro.org>2014-05-21 08:52:18 +0530
committerMark Brown <broonie@linaro.org>2014-05-22 00:20:11 +0100
commit55313bd3b09b68ce28e328e9dde79bfc389ea921 (patch)
tree323c56ef84abeca57625a853d77c1811b7122db8 /sound/soc/samsung/idma.c
parentc583883ecdca277c258c95dc8c711dfb76d23b40 (diff)
downloadlinux-55313bd3b09b68ce28e328e9dde79bfc389ea921.tar.bz2
ASoC: samsung: Use devm_snd_soc_register_platform
Replaced snd_soc_register_platform with devm_snd_soc_register_platform in samsung_asoc_dma_platform_register(). This makes the function samsung_asoc_dma_platform_unregister() redundant. This is removed and all its users are updated. Signed-off-by: Tushar Behera <tushar.behera@linaro.org> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/samsung/idma.c')
-rw-r--r--sound/soc/samsung/idma.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/sound/soc/samsung/idma.c b/sound/soc/samsung/idma.c
index e9891b44f0e2..8cc5770abb39 100644
--- a/sound/soc/samsung/idma.c
+++ b/sound/soc/samsung/idma.c
@@ -413,13 +413,7 @@ static int asoc_idma_platform_probe(struct platform_device *pdev)
if (idma_irq < 0)
return idma_irq;
- return snd_soc_register_platform(&pdev->dev, &asoc_idma_platform);
-}
-
-static int asoc_idma_platform_remove(struct platform_device *pdev)
-{
- snd_soc_unregister_platform(&pdev->dev);
- return 0;
+ return devm_snd_soc_register_platform(&pdev->dev, &asoc_idma_platform);
}
static struct platform_driver asoc_idma_driver = {
@@ -429,7 +423,6 @@ static struct platform_driver asoc_idma_driver = {
},
.probe = asoc_idma_platform_probe,
- .remove = asoc_idma_platform_remove,
};
module_platform_driver(asoc_idma_driver);