summaryrefslogtreecommitdiff
path: root/sound/soc
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2013-11-28 11:50:33 +0400
committerMark Brown <broonie@linaro.org>2013-12-02 15:47:16 +0400
commit3990c516de66af940c5c366a81531787aefe81ae (patch)
tree08859dff1de12f2c2042fceb1f774d7f79f7d966 /sound/soc
parentc0d38da61d28b9fad226218acc5716c333dab3e4 (diff)
downloadlinux-3990c516de66af940c5c366a81531787aefe81ae.tar.xz
ASoC: bcm2835-i2s: Use devm_snd_dmaengine_pcm_register()
Makes the code slightly shorter. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/bcm/bcm2835-i2s.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/sound/soc/bcm/bcm2835-i2s.c b/sound/soc/bcm/bcm2835-i2s.c
index f49b007c8b43..2685fe4f8427 100644
--- a/sound/soc/bcm/bcm2835-i2s.c
+++ b/sound/soc/bcm/bcm2835-i2s.c
@@ -848,7 +848,7 @@ static int bcm2835_i2s_probe(struct platform_device *pdev)
return ret;
}
- ret = snd_dmaengine_pcm_register(&pdev->dev, NULL, 0);
+ ret = devm_snd_dmaengine_pcm_register(&pdev->dev, NULL, 0);
if (ret) {
dev_err(&pdev->dev, "Could not register PCM: %d\n", ret);
return ret;
@@ -862,15 +862,8 @@ static const struct of_device_id bcm2835_i2s_of_match[] = {
{},
};
-static int bcm2835_i2s_remove(struct platform_device *pdev)
-{
- snd_dmaengine_pcm_unregister(&pdev->dev);
- return 0;
-}
-
static struct platform_driver bcm2835_i2s_driver = {
.probe = bcm2835_i2s_probe,
- .remove = bcm2835_i2s_remove,
.driver = {
.name = "bcm2835-i2s",
.owner = THIS_MODULE,