diff options
Diffstat (limited to 'sound/pci/emu10k1/emu10k1x.c')
-rw-r--r-- | sound/pci/emu10k1/emu10k1x.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/sound/pci/emu10k1/emu10k1x.c b/sound/pci/emu10k1/emu10k1x.c index 795577716a5d..ca402e994696 100644 --- a/sound/pci/emu10k1/emu10k1x.c +++ b/sound/pci/emu10k1/emu10k1x.c | |||
@@ -836,13 +836,6 @@ static irqreturn_t snd_emu10k1x_interrupt(int irq, void *dev_id, | |||
836 | return IRQ_HANDLED; | 836 | return IRQ_HANDLED; |
837 | } | 837 | } |
838 | 838 | ||
839 | static void snd_emu10k1x_pcm_free(snd_pcm_t *pcm) | ||
840 | { | ||
841 | emu10k1x_t *emu = pcm->private_data; | ||
842 | emu->pcm = NULL; | ||
843 | snd_pcm_lib_preallocate_free_for_all(pcm); | ||
844 | } | ||
845 | |||
846 | static int __devinit snd_emu10k1x_pcm(emu10k1x_t *emu, int device, snd_pcm_t **rpcm) | 839 | static int __devinit snd_emu10k1x_pcm(emu10k1x_t *emu, int device, snd_pcm_t **rpcm) |
847 | { | 840 | { |
848 | snd_pcm_t *pcm; | 841 | snd_pcm_t *pcm; |
@@ -858,7 +851,6 @@ static int __devinit snd_emu10k1x_pcm(emu10k1x_t *emu, int device, snd_pcm_t **r | |||
858 | return err; | 851 | return err; |
859 | 852 | ||
860 | pcm->private_data = emu; | 853 | pcm->private_data = emu; |
861 | pcm->private_free = snd_emu10k1x_pcm_free; | ||
862 | 854 | ||
863 | switch(device) { | 855 | switch(device) { |
864 | case 0: | 856 | case 0: |