X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=sound%2Fpci%2Fbt87x.c;h=4ecdd635ed1d34bcf06749aa7dcc4ad7f6b0acb3;hb=d26acd92fa990764b72608a68224f46fac377032;hp=2dba752faf4e6281a2a31bddf4a0998197f4d535;hpb=02bae2129710018883f9536969de7e6acf9304ca;p=pandora-kernel.git diff --git a/sound/pci/bt87x.c b/sound/pci/bt87x.c index 2dba752faf4e..4ecdd635ed1d 100644 --- a/sound/pci/bt87x.c +++ b/sound/pci/bt87x.c @@ -21,7 +21,6 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#include #include #include #include @@ -682,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);