/*
options[0] - I/O port
- options[1] - irq
options[2] - number of encoder chips installed
*/
{
int result = 0;
unsigned long iobase;
- unsigned int irq;
struct comedi_subdevice *s;
iobase = it->options[0];
/* Make sure that PnP ports get activated */
pnp_register_driver(&c6xdigio_pnp_driver);
- irq = it->options[1];
- if (irq > 0)
- printk(KERN_DEBUG "comedi%d: irq = %u ignored\n",
- dev->minor, irq);
- else if (irq == 0)
- printk(KERN_DEBUG "comedi%d: no irq\n", dev->minor);
-
s = &dev->subdevices[0];
/* pwm output subdevice */
s->type = COMEDI_SUBD_AO; /* Not sure what to put here */
{
if (dev->iobase)
release_region(dev->iobase, C6XDIGIO_SIZE);
- if (dev->irq)
- free_irq(dev->irq, dev);
pnp_unregister_driver(&c6xdigio_pnp_driver);
}