diff options
author | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2010-07-22 05:56:38 -0400 |
---|---|---|
committer | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2010-07-27 05:04:10 -0400 |
commit | 165476671f731b4c3d6cf401d0e1886f4a4f4a8e (patch) | |
tree | 59bba3913c7bb3a023394bce86bb0ea79d95f1ed /drivers/firewire/nosy.c | |
parent | 55e77c06c6017a70630cf599770369b8ba07c841 (diff) |
firewire: nosy: fix IRQ handler for card ejection
Untested, I don't have a PCILynx CardBus card.
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to 'drivers/firewire/nosy.c')
-rw-r--r-- | drivers/firewire/nosy.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/firewire/nosy.c b/drivers/firewire/nosy.c index 57a1100f8f4e..a241b62630b2 100644 --- a/drivers/firewire/nosy.c +++ b/drivers/firewire/nosy.c | |||
@@ -444,6 +444,10 @@ irq_handler(int irq, void *device) | |||
444 | 444 | ||
445 | pci_int_status = reg_read(lynx, PCI_INT_STATUS); | 445 | pci_int_status = reg_read(lynx, PCI_INT_STATUS); |
446 | 446 | ||
447 | if (pci_int_status == ~0) | ||
448 | /* Card was ejected. */ | ||
449 | return IRQ_NONE; | ||
450 | |||
447 | if ((pci_int_status & PCI_INT_INT_PEND) == 0) | 451 | if ((pci_int_status & PCI_INT_INT_PEND) == 0) |
448 | /* Not our interrupt, bail out quickly. */ | 452 | /* Not our interrupt, bail out quickly. */ |
449 | return IRQ_NONE; | 453 | return IRQ_NONE; |