diff options
author | Xiubo Li | 2013-12-20 05:30:26 +0100 |
---|---|---|
committer | Mark Brown | 2013-12-21 15:33:10 +0100 |
commit | e5180df3960b6130f17f3c5ab50d23674cdb2b5a (patch) | |
tree | f5e9aa9cce96b35fb093231712be098b13a705ee /sound/soc/fsl/fsl_sai.c | |
parent | ASoC: fsl-sai: Remove fsl_sai_remove() (diff) | |
download | kernel-qcow2-linux-e5180df3960b6130f17f3c5ab50d23674cdb2b5a.tar.gz kernel-qcow2-linux-e5180df3960b6130f17f3c5ab50d23674cdb2b5a.tar.xz kernel-qcow2-linux-e5180df3960b6130f17f3c5ab50d23674cdb2b5a.zip |
ASoC: fsl-sai: Use devm_snd_dmaengine_pcm_register()
Makes the code slightly shorter
Signed-off-by: Xiubo Li <Li.Xiubo@freescale.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/fsl/fsl_sai.c')
-rw-r--r-- | sound/soc/fsl/fsl_sai.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c index 1868ec34be10..262d3107892e 100644 --- a/sound/soc/fsl/fsl_sai.c +++ b/sound/soc/fsl/fsl_sai.c @@ -443,19 +443,8 @@ static int fsl_sai_probe(struct platform_device *pdev) if (ret) return ret; - ret = snd_dmaengine_pcm_register(&pdev->dev, NULL, + return devm_snd_dmaengine_pcm_register(&pdev->dev, NULL, SND_DMAENGINE_PCM_FLAG_NO_RESIDUE); - if (ret) - return ret; - - return 0; -} - -static int fsl_sai_remove(struct platform_device *pdev) -{ - snd_dmaengine_pcm_unregister(&pdev->dev); - - return 0; } static const struct of_device_id fsl_sai_ids[] = { @@ -465,8 +454,6 @@ static const struct of_device_id fsl_sai_ids[] = { static struct platform_driver fsl_sai_driver = { .probe = fsl_sai_probe, - .remove = fsl_sai_remove, - .driver = { .name = "fsl-sai", .owner = THIS_MODULE, |