aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
Diffstat (limited to 'sound')
-rw-r--r--sound/pci/echoaudio/echoaudio.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sound/pci/echoaudio/echoaudio.c b/sound/pci/echoaudio/echoaudio.c
index e695502f7135..43b408ada1da 100644
--- a/sound/pci/echoaudio/echoaudio.c
+++ b/sound/pci/echoaudio/echoaudio.c
@@ -1878,10 +1878,9 @@ static int snd_echo_free(struct echoaudio *chip)
1878 if (chip->dsp_registers) 1878 if (chip->dsp_registers)
1879 iounmap(chip->dsp_registers); 1879 iounmap(chip->dsp_registers);
1880 1880
1881 if (chip->iores) { 1881 if (chip->iores)
1882 release_resource(chip->iores); 1882 release_and_free_resource(chip->iores);
1883 kfree_nocheck(chip->iores); 1883
1884 }
1885 DE_INIT(("MMIO freed.\n")); 1884 DE_INIT(("MMIO freed.\n"));
1886 1885
1887 pci_disable_device(chip->pci); 1886 pci_disable_device(chip->pci);