diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2015-01-02 13:56:12 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-01-05 22:30:05 +0100 |
commit | 0db54e74a9e44afb92bc547277827258dbf5dc8f (patch) | |
tree | 078dfe8c3b822d14a510eb19c45b7e924b0a3c33 /sound/soc/sh/fsi.c | |
parent | Linux 3.19-rc1 (diff) | |
download | linux-0db54e74a9e44afb92bc547277827258dbf5dc8f.tar.xz linux-0db54e74a9e44afb92bc547277827258dbf5dc8f.zip |
ASoC: sh: 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>
Diffstat (limited to 'sound/soc/sh/fsi.c')
-rw-r--r-- | sound/soc/sh/fsi.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/sound/soc/sh/fsi.c b/sound/soc/sh/fsi.c index 8869971d7884..422faa93972b 100644 --- a/sound/soc/sh/fsi.c +++ b/sound/soc/sh/fsi.c @@ -1765,11 +1765,6 @@ static struct snd_pcm_ops fsi_pcm_ops = { #define PREALLOC_BUFFER (32 * 1024) #define PREALLOC_BUFFER_MAX (32 * 1024) -static void fsi_pcm_free(struct snd_pcm *pcm) -{ - snd_pcm_lib_preallocate_free_for_all(pcm); -} - static int fsi_pcm_new(struct snd_soc_pcm_runtime *rtd) { return snd_pcm_lib_preallocate_pages_for_all( @@ -1821,7 +1816,6 @@ static struct snd_soc_dai_driver fsi_soc_dai[] = { static struct snd_soc_platform_driver fsi_soc_platform = { .ops = &fsi_pcm_ops, .pcm_new = fsi_pcm_new, - .pcm_free = fsi_pcm_free, }; static const struct snd_soc_component_driver fsi_soc_component = { |