}
int labpc_common_attach(struct comedi_device *dev,
- unsigned int irq)
+ unsigned int irq, unsigned long isr_flags)
{
const struct labpc_boardinfo *board = comedi_board(dev);
struct labpc_private *devpriv = dev->private;
struct comedi_subdevice *s;
- unsigned long isr_flags;
int ret;
int i;
}
if (irq) {
- isr_flags = 0;
- if (board->bustype == pci_bustype ||
- board->bustype == pcmcia_bustype)
- isr_flags |= IRQF_SHARED;
ret = request_irq(irq, labpc_interrupt, isr_flags,
dev->board_name, dev);
if (ret == 0)
if (ret)
return ret;
- ret = labpc_common_attach(dev, irq);
+ ret = labpc_common_attach(dev, irq, 0);
if (ret)
return ret;
};
int labpc_common_attach(struct comedi_device *dev,
- unsigned int irq);
+ unsigned int irq, unsigned long isr_flags);
void labpc_common_detach(struct comedi_device *dev);
extern const int labpc_1200_ai_gain_bits[];
return -ENOMEM;
dev->private = devpriv;
- return labpc_common_attach(dev, link->irq);
+ return labpc_common_attach(dev, link->irq, IRQF_SHARED);
}
static void labpc_detach(struct comedi_device *dev)
return ret;
dev->iobase = (unsigned long)devpriv->mite->daq_io_addr;
- return labpc_common_attach(dev, mite_irq(devpriv->mite));
+ return labpc_common_attach(dev, mite_irq(devpriv->mite), IRQF_SHARED);
}
static void labpc_pci_detach(struct comedi_device *dev)