ALSA: pcm: Remove snd_pcm_lib_preallocate_dma_free()
[linux-2.6-microblaze.git] / sound / core / pcm_memory.c
index 4f03ba8..ee6e9c5 100644 (file)
@@ -89,14 +89,6 @@ static int preallocate_pcm_pages(struct snd_pcm_substream *substream, size_t siz
        return 0;
 }
 
-/*
- * release the preallocated buffer if not yet done.
- */
-static void snd_pcm_lib_preallocate_dma_free(struct snd_pcm_substream *substream)
-{
-       do_free_pages(substream->pcm->card, &substream->dma_buffer);
-}
-
 /**
  * snd_pcm_lib_preallocate_free - release the preallocated buffer of the specified substream.
  * @substream: the pcm substream instance
@@ -105,7 +97,7 @@ static void snd_pcm_lib_preallocate_dma_free(struct snd_pcm_substream *substream
  */
 void snd_pcm_lib_preallocate_free(struct snd_pcm_substream *substream)
 {
-       snd_pcm_lib_preallocate_dma_free(substream);
+       do_free_pages(substream->pcm->card, &substream->dma_buffer);
 }
 
 /**