staging: comedi: ni_labpc: Use shared IRQ for PCMCIA card

The ni_labpc driver module only requests a shared IRQ for PCI devices,
requesting a non-shared IRQ for non-PCI devices.
As this module is also used by the ni_labpc_cs module for certain
National Instruments PCMCIA cards, it also needs to request a shared IRQ
for PCMCIA devices, otherwise you get a IRQ mismatch with the CardBus
controller.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by Ian Abbott and committed by Greg Kroah-Hartman d1ce3184 e7bf352f

+2 -1
+2 -1
drivers/staging/comedi/drivers/ni_labpc.c
··· 575 /* grab our IRQ */ 576 if (irq) { 577 isr_flags = 0; 578 - if (thisboard->bustype == pci_bustype) 579 isr_flags |= IRQF_SHARED; 580 if (request_irq(irq, labpc_interrupt, isr_flags, 581 driver_labpc.driver_name, dev)) {
··· 575 /* grab our IRQ */ 576 if (irq) { 577 isr_flags = 0; 578 + if (thisboard->bustype == pci_bustype 579 + || thisboard->bustype == pcmcia_bustype) 580 isr_flags |= IRQF_SHARED; 581 if (request_irq(irq, labpc_interrupt, isr_flags, 582 driver_labpc.driver_name, dev)) {