struct subdev_8255_private {
unsigned long iobase;
int (*io) (int, int, int, unsigned long);
- int have_irq;
};
void subdev_8255_interrupt(struct comedi_device *dev,
int (*io) (int, int, int, unsigned long),
unsigned long iobase)
{
- struct subdev_8255_private *spriv;
int ret;
ret = subdev_8255_init(dev, s, io, iobase);
if (ret < 0)
return ret;
- spriv = s->private;
-
- spriv->have_irq = 1;
- s->do_cmdtest = subdev_8255_cmdtest;
- s->do_cmd = subdev_8255_cmd;
- s->cancel = subdev_8255_cancel;
+ s->do_cmdtest = subdev_8255_cmdtest;
+ s->do_cmd = subdev_8255_cmd;
+ s->cancel = subdev_8255_cancel;
return 0;
}