diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2015-01-02 13:56:09 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-01-06 17:24:26 +0000 |
commit | 8686f251e4823a4196bae86f22dab8cfd3b454cc (patch) | |
tree | cc2917a5a835bcf783df1eaec7bbd240f23f78a2 /sound/soc/intel/sst-baytrail-pcm.c | |
parent | b93673be48cef887551d109683922bcc15f40d27 (diff) | |
download | lwn-8686f251e4823a4196bae86f22dab8cfd3b454cc.tar.gz lwn-8686f251e4823a4196bae86f22dab8cfd3b454cc.zip |
ASoC: intel: 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>
Acked-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/sst-baytrail-pcm.c')
-rw-r--r-- | sound/soc/intel/sst-baytrail-pcm.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/sound/soc/intel/sst-baytrail-pcm.c b/sound/soc/intel/sst-baytrail-pcm.c index 3bb6288d8b4d..224c49c9f135 100644 --- a/sound/soc/intel/sst-baytrail-pcm.c +++ b/sound/soc/intel/sst-baytrail-pcm.c @@ -320,11 +320,6 @@ static struct snd_pcm_ops sst_byt_pcm_ops = { .mmap = sst_byt_pcm_mmap, }; -static void sst_byt_pcm_free(struct snd_pcm *pcm) -{ - snd_pcm_lib_preallocate_free_for_all(pcm); -} - static int sst_byt_pcm_new(struct snd_soc_pcm_runtime *rtd) { struct snd_pcm *pcm = rtd->pcm; @@ -403,7 +398,6 @@ static struct snd_soc_platform_driver byt_soc_platform = { .remove = sst_byt_pcm_remove, .ops = &sst_byt_pcm_ops, .pcm_new = sst_byt_pcm_new, - .pcm_free = sst_byt_pcm_free, }; static const struct snd_soc_component_driver byt_dai_component = { |