diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2013-11-28 08:50:35 +0100 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-12-02 11:48:54 +0000 |
commit | 7e6d18ac7ea1372b462778ff7c416ceaabe71b66 (patch) | |
tree | a9a969c8f2d201197f96e2c5f493cfdf430f8a62 /sound/soc/fsl/imx-pcm-dma.c | |
parent | 75ab73bc5d0e625e9d886653ec98d0e9d6ad4c68 (diff) | |
download | talos-op-linux-7e6d18ac7ea1372b462778ff7c416ceaabe71b66.tar.gz talos-op-linux-7e6d18ac7ea1372b462778ff7c416ceaabe71b66.zip |
ASoC: fsl: Use devm_snd_dmaengine_pcm_register()
Makes the code shorter.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/fsl/imx-pcm-dma.c')
-rw-r--r-- | sound/soc/fsl/imx-pcm-dma.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/sound/soc/fsl/imx-pcm-dma.c b/sound/soc/fsl/imx-pcm-dma.c index aee23077080a..c5e47f866b4b 100644 --- a/sound/soc/fsl/imx-pcm-dma.c +++ b/sound/soc/fsl/imx-pcm-dma.c @@ -61,16 +61,11 @@ static const struct snd_dmaengine_pcm_config imx_dmaengine_pcm_config = { int imx_pcm_dma_init(struct platform_device *pdev) { - return snd_dmaengine_pcm_register(&pdev->dev, &imx_dmaengine_pcm_config, + return devm_snd_dmaengine_pcm_register(&pdev->dev, + &imx_dmaengine_pcm_config, SND_DMAENGINE_PCM_FLAG_NO_RESIDUE | SND_DMAENGINE_PCM_FLAG_COMPAT); } EXPORT_SYMBOL_GPL(imx_pcm_dma_init); -void imx_pcm_dma_exit(struct platform_device *pdev) -{ - snd_dmaengine_pcm_unregister(&pdev->dev); -} -EXPORT_SYMBOL_GPL(imx_pcm_dma_exit); - MODULE_LICENSE("GPL"); |