printk(KERN_INFO "comedi%d: pcl812: board=%s, ioport=0x%03lx",
dev->minor, board->name, iobase);
- if (!request_region(iobase, board->io_range, "pcl812")) {
+ if (!request_region(iobase, board->io_range, dev->board_name)) {
printk("I/O port conflict\n");
return -EIO;
}
}
dev->private = devpriv;
- dev->board_name = board->name;
-
irq = 0;
if (board->IRQbits != 0) { /* board support IRQ */
irq = it->options[1];
"DISABLING IT", irq);
irq = 0; /* Bad IRQ */
} else {
- if (request_irq
- (irq, interrupt_pcl812, 0, "pcl812", dev)) {
+ if (request_irq(irq, interrupt_pcl812, 0,
+ dev->board_name, dev)) {
printk
(", unable to allocate IRQ %u, "
"DISABLING IT", irq);
printk(", DMA is out of allowed range, FAIL!\n");
return -EINVAL; /* Bad DMA */
}
- ret = request_dma(dma, "pcl812");
+ ret = request_dma(dma, dev->board_name);
if (ret) {
printk(KERN_ERR ", unable to allocate DMA %u, FAIL!\n",
dma);