Skip to content

Commit

Permalink
ASoC: spear_pcm: Use devm_snd_dmaengine_pcm_register to fix resource …
Browse files Browse the repository at this point in the history
…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: e1771bc ("ASoC: SPEAr: remove custom DMA alloc compat function")
Signed-off-by: Axel Lin <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
  • Loading branch information
AxelLin authored and broonie committed Aug 30, 2015
1 parent 552ef80 commit 2c3f4b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/spear/spear_pcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 2c3f4b9

Please sign in to comment.