From 165476671f731b4c3d6cf401d0e1886f4a4f4a8e Mon Sep 17 00:00:00 2001 From: Stefan Richter Date: Thu, 22 Jul 2010 11:56:38 +0200 Subject: firewire: nosy: fix IRQ handler for card ejection Untested, I don't have a PCILynx CardBus card. Signed-off-by: Stefan Richter --- drivers/firewire/nosy.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'drivers/firewire') diff --git a/drivers/firewire/nosy.c b/drivers/firewire/nosy.c index 57a1100f8f4..a241b62630b 100644 --- a/drivers/firewire/nosy.c +++ b/drivers/firewire/nosy.c @@ -444,6 +444,10 @@ irq_handler(int irq, void *device) pci_int_status = reg_read(lynx, PCI_INT_STATUS); + if (pci_int_status == ~0) + /* Card was ejected. */ + return IRQ_NONE; + if ((pci_int_status & PCI_INT_INT_PEND) == 0) /* Not our interrupt, bail out quickly. */ return IRQ_NONE; -- cgit v1.2.3-70-g09d2