diff options
Diffstat (limited to 'sound/pci/ali5451/ali5451.c')
-rw-r--r-- | sound/pci/ali5451/ali5451.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/pci/ali5451/ali5451.c b/sound/pci/ali5451/ali5451.c index fc04d3da1af5..1a0fd65ec280 100644 --- a/sound/pci/ali5451/ali5451.c +++ b/sound/pci/ali5451/ali5451.c | |||
@@ -2047,10 +2047,8 @@ static int snd_ali_free(struct snd_ali * codec) | |||
2047 | { | 2047 | { |
2048 | if (codec->hw_initialized) | 2048 | if (codec->hw_initialized) |
2049 | snd_ali_disable_address_interrupt(codec); | 2049 | snd_ali_disable_address_interrupt(codec); |
2050 | if (codec->irq >= 0) { | 2050 | if (codec->irq >= 0) |
2051 | synchronize_irq(codec->irq); | ||
2052 | free_irq(codec->irq, codec); | 2051 | free_irq(codec->irq, codec); |
2053 | } | ||
2054 | if (codec->port) | 2052 | if (codec->port) |
2055 | pci_release_regions(codec->pci); | 2053 | pci_release_regions(codec->pci); |
2056 | pci_disable_device(codec->pci); | 2054 | pci_disable_device(codec->pci); |