diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2013-11-28 08:50:37 +0100 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-12-02 11:49:36 +0000 |
commit | 2650bc4f6d0c36f1219d2070485cc2980a88fab3 (patch) | |
tree | d74287725a4178cab40928564c2253c5fdc60d57 /sound/soc/mxs/mxs-pcm.c | |
parent | a22f33b00346f26d29483cdacdbf26df7947ef23 (diff) | |
download | op-kernel-dev-2650bc4f6d0c36f1219d2070485cc2980a88fab3.zip op-kernel-dev-2650bc4f6d0c36f1219d2070485cc2980a88fab3.tar.gz |
ASoC: mxs: 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/mxs/mxs-pcm.c')
-rw-r--r-- | sound/soc/mxs/mxs-pcm.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/sound/soc/mxs/mxs-pcm.c b/sound/soc/mxs/mxs-pcm.c index b16abbb..04a6b0d 100644 --- a/sound/soc/mxs/mxs-pcm.c +++ b/sound/soc/mxs/mxs-pcm.c @@ -56,16 +56,10 @@ static const struct snd_dmaengine_pcm_config mxs_dmaengine_pcm_config = { int mxs_pcm_platform_register(struct device *dev) { - return snd_dmaengine_pcm_register(dev, &mxs_dmaengine_pcm_config, + return devm_snd_dmaengine_pcm_register(dev, &mxs_dmaengine_pcm_config, SND_DMAENGINE_PCM_FLAG_NO_RESIDUE | SND_DMAENGINE_PCM_FLAG_HALF_DUPLEX); } EXPORT_SYMBOL_GPL(mxs_pcm_platform_register); -void mxs_pcm_platform_unregister(struct device *dev) -{ - snd_dmaengine_pcm_unregister(dev); -} -EXPORT_SYMBOL_GPL(mxs_pcm_platform_unregister); - MODULE_LICENSE("GPL"); |