}
}
-static int pcl818_check(struct comedi_device *dev)
-{
- /* the MUX register should return the same value written */
- outb(0x00, dev->iobase + PCL818_MUX);
- if (inb(dev->iobase + PCL818_MUX) != 0x00)
- return -ENODEV;
- outb(0x55, dev->iobase + PCL818_MUX);
- if (inb(dev->iobase + PCL818_MUX) != 0x55)
- return -ENODEV;
-
- /* reset the MUX register to a known state */
- outb(0x00, dev->iobase + PCL818_MUX);
-
- /* the CONTROL register should return the same value written */
- outb(0x18, dev->iobase + PCL818_CONTROL);
- if (inb(dev->iobase + PCL818_CONTROL) != 0x18)
- return -ENODEV;
-
- /* reset the CONTROL register to a known state */
- outb(0x00, dev->iobase + PCL818_CONTROL);
-
- return 0;
-}
-
static int pcl818_attach(struct comedi_device *dev, struct comedi_devconfig *it)
{
const struct pcl818_board *board = comedi_board(dev);
if (ret)
return ret;
- ret = pcl818_check(dev);
- if (ret)
- return ret;
-
/* we can use IRQ 2-7 for async command support */
if (it->options[1] >= 2 && it->options[1] <= 7) {
ret = request_irq(it->options[1], interrupt_pcl818, 0,