ASoC: spear_pcm: Use devm_snd_dmaengine_pcm_register to fix resource leak
authorAxel Lin <axel.lin@ingics.com>
Sun, 30 Aug 2015 00:08:15 +0000 (08:08 +0800)
committerMark Brown <broonie@kernel.org>
Sun, 30 Aug 2015 11:13:00 +0000 (12:13 +0100)
commit2c3f4b97eea5ce405baf2591715445da6ed05851
tree88582d502b73f025f791cfef8e837c2300e09a3a
parent552ef80389ec2567566be1ccc0dd79f08ba32cce
ASoC: spear_pcm: Use devm_snd_dmaengine_pcm_register to fix resource leak

All the callers assume devm_spear_pcm_platform_register is a devm_ API, so
use devm_snd_dmaengine_pcm_register in devm_spear_pcm_platform_register.

Fixes: e1771bcf99b0 ("ASoC: SPEAr: remove custom DMA alloc compat function")
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/spear/spear_pcm.c