ni_labpc: Use shared IRQ for PCMCIA card.
authorIan Abbott <abbotti@mev.co.uk>
Wed, 19 Jan 2011 10:54:39 +0000 (10:54 +0000)
committerIan Abbott <abbotti@mev.co.uk>
Wed, 19 Jan 2011 10:54:39 +0000 (10:54 +0000)
comedi/drivers/ni_labpc.c

index 802da0d7826cfbfc830a35a4d1ff619911db6899..93dab42930e4074a841f4a56545498daa21ae965 100644 (file)
@@ -514,7 +514,8 @@ int labpc_common_attach(comedi_device * dev, unsigned long iobase,
        /* grab our IRQ */
        if (irq) {
                isr_flags = 0;
-               if (thisboard->bustype == pci_bustype)
+               if (thisboard->bustype == pci_bustype
+                   || thisboard->bustype == pcmcia_bustype)
                        isr_flags |= IRQF_SHARED;
                if (comedi_request_irq(irq, labpc_interrupt, isr_flags,
                                driver_labpc.driver_name, dev)) {