unsigned long iobase;
int i;
- dev->board_name = "8255";
-
for (i = 0; i < COMEDI_NDEVCONFOPTS; i++) {
iobase = it->options[i];
if (!iobase)
struct comedi_subdevice *s;
int ret;
- dev->board_name = dev->driver->driver_name;
-
devpriv = kzalloc(sizeof(*devpriv), GFP_KERNEL);
if (!devpriv)
return -ENOMEM;
struct comedi_subdevice *s;
int ret;
- dev->board_name = dev->driver->driver_name;
-
devpriv = kzalloc(sizeof(*devpriv), GFP_KERNEL);
if (!devpriv)
return -ENOMEM;
struct comedi_subdevice *s;
int ret;
- dev->board_name = dev->driver->driver_name;
-
ret = comedi_pci_enable(dev);
if (ret)
return ret;
struct comedi_subdevice *s;
int ret;
- dev->board_name = dev->driver->driver_name;
-
ret = comedi_pci_enable(dev);
if (ret)
return ret;
int ao_n_chan;
int ret;
- dev->board_name = dev->driver->driver_name;
-
devpriv = kzalloc(sizeof(*devpriv), GFP_KERNEL);
if (!devpriv)
return -ENOMEM;
struct comedi_subdevice *s;
int ret;
- dev->board_name = dev->driver->driver_name;
-
ret = comedi_pci_enable(dev);
if (ret)
return ret;
struct comedi_subdevice *s;
int ret;
- dev->board_name = dev->driver->driver_name;
-
dev_private = kzalloc(sizeof(*dev_private), GFP_KERNEL);
if (!dev_private)
return -ENOMEM;
int unipolar, differential;
int ret;
- dev->board_name = dev->driver->driver_name;
-
iobase = it->options[0];
unipolar = it->options[1];
differential = it->options[2];
struct comedi_subdevice *s;
int ret;
- dev->board_name = dev->driver->driver_name;
-
devpriv = kzalloc(sizeof(*devpriv), GFP_KERNEL);
if (!devpriv)
return -ENOMEM;
devpriv->gain_value[i] = -1;
}
- dev->board_name = dev->driver->driver_name;
-
retval = comedi_pci_enable(dev);
if (retval)
return retval;
printk(KERN_INFO "comedi%d: aio_iiro_16: ", dev->minor);
- dev->board_name = dev->driver->driver_name;
-
iobase = it->options[0];
if (!request_region(iobase, AIO_IIRO_16_SIZE, dev->board_name)) {
return -EIO;
}
dev->iobase = iobase;
- dev->board_name = "c6xdigio";
result = comedi_alloc_subdevices(dev, 2);
if (result)
unsigned long iobase_8255;
int ret;
- dev->board_name = dev->driver->driver_name;
-
devpriv = kzalloc(sizeof(*devpriv), GFP_KERNEL);
if (!devpriv)
return -ENOMEM;
struct comedi_subdevice *s;
int ret;
- dev->board_name = dev->driver->driver_name;
-
devpriv = kzalloc(sizeof(*devpriv), GFP_KERNEL);
if (!devpriv)
return -ENOMEM;
unsigned long iobase;
struct comedi_subdevice *s;
- dev->board_name = dev->driver->driver_name;
-
iobase = it->options[0];
if (!request_region(iobase, PARPORT_SIZE, dev->board_name)) {
dev_err(dev->class_dev, "I/O port conflict\n");
int i;
int ret;
- dev->board_name = dev->driver->driver_name;
-
devpriv = kzalloc(sizeof(*devpriv), GFP_KERNEL);
if (!devpriv)
return -ENOMEM;
struct comedi_subdevice *s;
int ret;
- dev->board_name = dev->driver->driver_name;
-
ret = comedi_pci_enable(dev);
if (ret)
return ret;
unsigned int irq;
unsigned long iobase;
- dev->board_name = dev->driver->driver_name;
-
iobase = it->options[0];
devpriv = kzalloc(sizeof(*devpriv), GFP_KERNEL);
int ret;
struct comedi_subdevice *s;
- dev->board_name = "das6402";
-
iobase = it->options[0];
if (iobase == 0)
iobase = 0x300;
unsigned long iobase;
unsigned int irq;
- dev->board_name = dev->driver->driver_name;
-
iobase = it->options[0];
irq = it->options[1];
return -EIO;
}
dev->iobase = iobase;
- dev->board_name = "dt2814";
outb(0, dev->iobase + DT2814_CSR);
udelay(100);
}
dev->iobase = iobase;
- dev->board_name = "dt2815";
ret = comedi_alloc_subdevices(dev, 1);
if (ret)
return -EIO;
}
dev->iobase = iobase;
- dev->board_name = "dt2817";
ret = comedi_alloc_subdevices(dev, 1);
if (ret)
struct comedi_subdevice *s;
int ret;
- dev->board_name = "dt9812";
-
devpriv = kzalloc(sizeof(*devpriv), GFP_KERNEL);
if (!devpriv)
return -ENOMEM;
struct comedi_subdevice *s;
int ret;
- dev->board_name = dev->driver->driver_name;
-
devpriv = kzalloc(sizeof(*devpriv), GFP_KERNEL);
if (!devpriv)
return -ENOMEM;
return -EIO;
}
dev->iobase = iobase;
- dev->board_name = "fl512";
devpriv = kzalloc(sizeof(*devpriv), GFP_KERNEL);
if (!devpriv)
resource_size_t iobase;
int ret;
- dev->board_name = dev->driver->driver_name;
-
devpriv = kzalloc(sizeof(*devpriv), GFP_KERNEL);
if (!devpriv)
return -ENOMEM;
dev->private = devpriv;
devpriv->ioaddr = (void __iomem *)(unsigned long)it->options[0];
- dev->board_name = "pci20kc";
/* Check PCI-20001 C-2A Carrier Board ID */
if ((readb(devpriv->ioaddr) & PCI20000_ID) != PCI20000_ID) {
return -EINVAL;
break;
}
- dev->board_name = "jr3_pci";
result = comedi_pci_enable(dev);
if (result)
struct comedi_subdevice *s;
int ret;
- dev->board_name = dev->driver->driver_name;
-
ret = comedi_pci_enable(dev);
if (ret)
return ret;
}
dev->iobase = iobase;
- dev->board_name = "mpc624";
devpriv = kzalloc(sizeof(*devpriv), GFP_KERNEL);
if (!devpriv)
dev->minor, irq);
else
printk(KERN_WARNING "comedi%d: no irq\n", dev->minor);
- dev->board_name = "multiq3";
result = comedi_alloc_subdevices(dev, 5);
if (result)
struct comedi_subdevice *s;
int ret;
- dev->board_name = dev->driver->driver_name;
-
link->config_flags |= CONF_AUTO_SET_IO;
ret = comedi_pcmcia_enable(dev, NULL);
if (ret)
struct comedi_subdevice *s;
int ret;
- dev->board_name = dev->driver->driver_name;
-
link->config_flags |= CONF_AUTO_SET_IO;
ret = comedi_pcmcia_enable(dev, NULL);
if (ret)
printk("I/O port conflict\n");
return -EIO;
}
- dev->board_name = "pcl725";
dev->iobase = iobase;
dev->irq = 0;
unsigned int iorange;
int ret, i;
- dev->board_name = dev->driver->driver_name;
-
iobase = it->options[0];
iorange = PCM3724_SIZE;
return -EIO;
}
dev->iobase = iobase;
- dev->board_name = "pcm3730";
dev->iobase = dev->iobase;
dev->irq = 0;
}
dev->iobase = iobase;
- dev->board_name = dev->driver->driver_name;
-
devpriv = kzalloc(sizeof(*devpriv), GFP_KERNEL);
if (!devpriv)
return -ENOMEM;
unsigned int irq[MAX_ASICS];
int ret;
- dev->board_name = dev->driver->driver_name;
-
iobase = it->options[0];
irq[0] = it->options[1];
struct comedi_subdevice *s;
int ret;
- dev->board_name = dev->driver->driver_name;
-
devpriv = kzalloc(sizeof(*devpriv), GFP_KERNEL);
if (!devpriv)
return -ENOMEM;
}
dev->iobase = iobase;
- dev->board_name = "rti802";
-
devpriv = kzalloc(sizeof(*devpriv), GFP_KERNEL);
if (!devpriv)
return -ENOMEM;
int iobase;
int ret;
- dev->board_name = dev->driver->driver_name;
-
iobase = it->options[0];
if (!iobase || !request_region(iobase, S526_IOSIZE, dev->board_name)) {
comedi_error(dev, "I/O port conflict");
struct comedi_subdevice *s;
int ret;
- dev->board_name = dev->driver->driver_name;
-
devpriv = kzalloc(sizeof(*devpriv), GFP_KERNEL);
if (!devpriv)
return -ENOMEM;
struct comedi_subdevice *s;
int ret;
- dev->board_name = dev->driver->driver_name;
-
devpriv = kzalloc(sizeof(*devpriv), GFP_KERNEL);
if (!devpriv)
return -ENOMEM;
thisboard = comedi_board(dev);
-/*
- * Initialize dev->board_name.
- */
- dev->board_name = thisboard->name;
+ /*
+ * The dev->board_name is initialized by the comedi core before
+ * calling the (*attach) function. It can be optionally set by
+ * the driver if additional probing has been done.
+ */
+ /* dev->board_name = thisboard->name; */
/* Allocate the private data */
devpriv = kzalloc(sizeof(*devpriv), GFP_KERNEL);
struct comedi_subdevice *s;
int ret;
- dev->board_name = dev->driver->driver_name;
-
ret = comedi_alloc_subdevices(dev, 1);
if (ret)
return ret;
iobase = it->options[0];
- dev->board_name = DRIVER_NAME;
dev->iobase = iobase;
iobase += UNIOXX5_SUBDEV_BASE;
/* pointer back to the corresponding comedi device */
udev->comedidev = dev;
- dev->board_name = "usbdux";
-
/* set number of subdevices */
if (udev->high_speed) {
/* with pwm */
down(&udfs->sem);
/* pointer back to the corresponding comedi device */
udfs->comedidev = dev;
- dev->board_name = "usbduxfast";
+
ret = comedi_alloc_subdevices(dev, 1);
if (ret) {
up(&udfs->sem);
down(&uds->sem);
/* pointer back to the corresponding comedi device */
uds->comedidev = dev;
- dev->board_name = "usbduxsigma";
+
/* set number of subdevices */
if (uds->high_speed)
n_subdevs = 4; /* with pwm */