/* spin_lock_init(&info->ai_ctrl_lock); */
/* Get the irq assigned to the board */
- info->irq = pci_dev_p->irq;
+ dev->irq = pci_dev_p->irq;
return 0;
}
s->async->events = 0;
/* Check if irq number is right */
- if (irq != info->irq) {
+ if (irq != dev->irq) {
printk(KERN_ERR
"comedi%d: me4000: me4000_ai_isr(): "
"Incorrect interrupt num: %d\n", dev->minor, irq);
s->range_table = &me4000_ai_range;
s->insn_read = me4000_ai_insn_read;
- if (info->irq > 0) {
- if (request_irq(info->irq, me4000_ai_isr,
+ if (dev->irq > 0) {
+ if (request_irq(dev->irq, me4000_ai_isr,
IRQF_SHARED, "ME-4000", dev)) {
printk
("comedi%d: me4000: me4000_attach(): "