X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=sound%2Fpci%2Fbt87x.c;h=4ecdd635ed1d34bcf06749aa7dcc4ad7f6b0acb3;hb=b17b3d479c4c43c3a980ee553c3be3ca456523de;hp=c9a2421cf6f0df75078da262250633171beaaac6;hpb=fbdde7bd274d74729954190f99afcb1e3d9bbfba;p=linux-2.6 diff --git a/sound/pci/bt87x.c b/sound/pci/bt87x.c index c9a2421cf6..4ecdd635ed 100644 --- a/sound/pci/bt87x.c +++ b/sound/pci/bt87x.c @@ -681,15 +681,12 @@ static struct snd_kcontrol_new snd_bt87x_capture_source = { static int snd_bt87x_free(struct snd_bt87x *chip) { - if (chip->mmio) { + if (chip->mmio) snd_bt87x_stop(chip); - if (chip->irq >= 0) - synchronize_irq(chip->irq); - - iounmap(chip->mmio); - } if (chip->irq >= 0) free_irq(chip->irq, chip); + if (chip->mmio) + iounmap(chip->mmio); pci_release_regions(chip->pci); pci_disable_device(chip->pci); kfree(chip);