ASoC: xtensa: Remove unnecessary snd_pcm_lib_preallocate_free_for_all()
authorVaishali Thakkar <vthakkar1994@gmail.com>
Thu, 23 Jul 2015 16:39:15 +0000 (22:09 +0530)
committerMark Brown <broonie@kernel.org>
Thu, 23 Jul 2015 16:40:37 +0000 (17:40 +0100)
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: Vaishali Thakkar <vthakkar1994@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/xtensa/xtfpga-i2s.c

index 1cfb19e12949ecd725409a1cace8122d4e6bf766..039f65e36fa88faf2e4d6f4395fdc1c527fc9e5e 100644 (file)
@@ -474,11 +474,6 @@ static int xtfpga_pcm_new(struct snd_soc_pcm_runtime *rtd)
                                                     card->dev, size, size);
 }
 
-static void xtfpga_pcm_free(struct snd_pcm *pcm)
-{
-       snd_pcm_lib_preallocate_free_for_all(pcm);
-}
-
 static const struct snd_pcm_ops xtfpga_pcm_ops = {
        .open           = xtfpga_pcm_open,
        .close          = xtfpga_pcm_close,
@@ -490,7 +485,6 @@ static const struct snd_pcm_ops xtfpga_pcm_ops = {
 
 static const struct snd_soc_platform_driver xtfpga_soc_platform = {
        .pcm_new        = xtfpga_pcm_new,
-       .pcm_free       = xtfpga_pcm_free,
        .ops            = &xtfpga_pcm_ops,
 };