diff options
Diffstat (limited to 'sound/pci/nm256/nm256.c')
-rw-r--r-- | sound/pci/nm256/nm256.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/pci/nm256/nm256.c b/sound/pci/nm256/nm256.c index 7ac654e381da..7efb838d18a6 100644 --- a/sound/pci/nm256/nm256.c +++ b/sound/pci/nm256/nm256.c | |||
@@ -1439,7 +1439,7 @@ static int snd_nm256_free(struct nm256 *chip) | |||
1439 | snd_nm256_capture_stop(chip); | 1439 | snd_nm256_capture_stop(chip); |
1440 | 1440 | ||
1441 | if (chip->irq >= 0) | 1441 | if (chip->irq >= 0) |
1442 | synchronize_irq(chip->irq); | 1442 | free_irq(chip->irq, chip); |
1443 | 1443 | ||
1444 | if (chip->cport) | 1444 | if (chip->cport) |
1445 | iounmap(chip->cport); | 1445 | iounmap(chip->cport); |
@@ -1447,8 +1447,6 @@ static int snd_nm256_free(struct nm256 *chip) | |||
1447 | iounmap(chip->buffer); | 1447 | iounmap(chip->buffer); |
1448 | release_and_free_resource(chip->res_cport); | 1448 | release_and_free_resource(chip->res_cport); |
1449 | release_and_free_resource(chip->res_buffer); | 1449 | release_and_free_resource(chip->res_buffer); |
1450 | if (chip->irq >= 0) | ||
1451 | free_irq(chip->irq, chip); | ||
1452 | 1450 | ||
1453 | pci_disable_device(chip->pci); | 1451 | pci_disable_device(chip->pci); |
1454 | kfree(chip->ac97_regs); | 1452 | kfree(chip->ac97_regs); |