projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6cd7d7
)
[ALSA] bt87X: fix freeing of shared interrupt
author
Clemens Ladisch
<
[email protected]
>
Fri, 22 Feb 2008 17:47:44 +0000
(18:47 +0100)
committer
Linus Torvalds
<
[email protected]
>
Fri, 22 Feb 2008 22:20:09 +0000
(14:20 -0800)
Call free_irq() after iounmap() because other devices could trigger our
shared interrupt handler.
Signed-off-by: Clemens Ladisch <
[email protected]
>
Signed-off-by: Takashi Iwai <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
sound/pci/bt87x.c
patch
|
blob
|
history
diff --git
a/sound/pci/bt87x.c
b/sound/pci/bt87x.c
index c9a2421cf6f0df75078da262250633171beaaac6..4ecdd635ed1d34bcf06749aa7dcc4ad7f6b0acb3 100644
(file)
--- 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);