[ALSA] Remove superfluous pcm_free callbacks
[linux-2.6-block.git] / sound / pci / rme9652 / hdspm.c
index 60a1141f13271241b84daac4a14bed74e790fe8e..ae2013a8492d19fa2fdc72b384fe2dc5e9002210 100644 (file)
@@ -3336,15 +3336,6 @@ static int __devinit snd_hdspm_preallocate_memory(hdspm_t * hdspm)
        return 0;
 }
 
-static int snd_hdspm_memory_free(hdspm_t * hdspm)
-{
-       snd_printdd("memory_free_for_all %p\n", hdspm->pcm);
-
-       snd_pcm_lib_preallocate_free_for_all(hdspm->pcm);
-       return 0;
-}
-
-
 static void hdspm_set_sgbuf(hdspm_t * hdspm, struct snd_sg_buf *sgbuf,
                             unsigned int reg, int channels)
 {
@@ -3568,8 +3559,6 @@ static int snd_hdspm_free(hdspm_t * hdspm)
        if (hdspm->iobase)
                iounmap(hdspm->iobase);
 
-       snd_hdspm_memory_free(hdspm);
-
        if (hdspm->port)
                pci_release_regions(hdspm->pci);
 
@@ -3639,7 +3628,6 @@ static void __devexit snd_hdspm_remove(struct pci_dev *pci)
 
 static struct pci_driver driver = {
        .name = "RME Hammerfall DSP MADI",
-       .owner = THIS_MODULE,
        .id_table = snd_hdspm_ids,
        .probe = snd_hdspm_probe,
        .remove = __devexit_p(snd_hdspm_remove),