diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2015-01-02 07:56:10 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-01-05 16:29:25 -0500 |
commit | 3a96878e6d01b70836cbf8a0e968619ef2e2aceb (patch) | |
tree | 558b3ae1897c201f994b6a7ce4e2ba6f20ba3f85 | |
parent | 97bf6af1f928216fd6c5a66e8a57bfa95a659672 (diff) |
ASoC: nuc900: Remove unnecessary snd_pcm_lib_preallocate_free_for_all()
The ALSA core takes care that all preallocated memory is freed when the PCM
itself is freed. There is no need to do this manually in the driver.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/nuc900/nuc900-pcm.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/sound/soc/nuc900/nuc900-pcm.c b/sound/soc/nuc900/nuc900-pcm.c index b779a3d9b5dd..b809fa909e4d 100644 --- a/sound/soc/nuc900/nuc900-pcm.c +++ b/sound/soc/nuc900/nuc900-pcm.c | |||
@@ -306,11 +306,6 @@ static struct snd_pcm_ops nuc900_dma_ops = { | |||
306 | .mmap = nuc900_dma_mmap, | 306 | .mmap = nuc900_dma_mmap, |
307 | }; | 307 | }; |
308 | 308 | ||
309 | static void nuc900_dma_free_dma_buffers(struct snd_pcm *pcm) | ||
310 | { | ||
311 | snd_pcm_lib_preallocate_free_for_all(pcm); | ||
312 | } | ||
313 | |||
314 | static int nuc900_dma_new(struct snd_soc_pcm_runtime *rtd) | 309 | static int nuc900_dma_new(struct snd_soc_pcm_runtime *rtd) |
315 | { | 310 | { |
316 | struct snd_card *card = rtd->card->snd_card; | 311 | struct snd_card *card = rtd->card->snd_card; |
@@ -330,7 +325,6 @@ static int nuc900_dma_new(struct snd_soc_pcm_runtime *rtd) | |||
330 | static struct snd_soc_platform_driver nuc900_soc_platform = { | 325 | static struct snd_soc_platform_driver nuc900_soc_platform = { |
331 | .ops = &nuc900_dma_ops, | 326 | .ops = &nuc900_dma_ops, |
332 | .pcm_new = nuc900_dma_new, | 327 | .pcm_new = nuc900_dma_new, |
333 | .pcm_free = nuc900_dma_free_dma_buffers, | ||
334 | }; | 328 | }; |
335 | 329 | ||
336 | static int nuc900_soc_platform_probe(struct platform_device *pdev) | 330 | static int nuc900_soc_platform_probe(struct platform_device *pdev) |