summaryrefslogtreecommitdiffstats
path: root/sound/soc/spear
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2015-08-30 08:08:15 +0800
committerMark Brown <broonie@kernel.org>2015-08-30 12:13:00 +0100
commit2c3f4b97eea5ce405baf2591715445da6ed05851 (patch)
tree88582d502b73f025f791cfef8e837c2300e09a3a /sound/soc/spear
parent552ef80389ec2567566be1ccc0dd79f08ba32cce (diff)
downloadop-kernel-dev-2c3f4b97eea5ce405baf2591715445da6ed05851.zip
op-kernel-dev-2c3f4b97eea5ce405baf2591715445da6ed05851.tar.gz
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>
Diffstat (limited to 'sound/soc/spear')
-rw-r--r--sound/soc/spear/spear_pcm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/spear/spear_pcm.c b/sound/soc/spear/spear_pcm.c
index a7dc3c5..e8476da 100644
--- a/sound/soc/spear/spear_pcm.c
+++ b/sound/soc/spear/spear_pcm.c
@@ -44,7 +44,7 @@ int devm_spear_pcm_platform_register(struct device *dev,
*config = spear_dmaengine_pcm_config;
config->compat_filter_fn = filter;
- return snd_dmaengine_pcm_register(dev, config,
+ return devm_snd_dmaengine_pcm_register(dev, config,
SND_DMAENGINE_PCM_FLAG_NO_DT |
SND_DMAENGINE_PCM_FLAG_COMPAT);
}
OpenPOWER on IntegriCloud