Remove all the "allocation failed" debug messages that are displayed
when the comedi_alloc_subdevices call fails.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbot <abbott@mev.co.uk>
Cc: Frank Mori Hess <fmhess@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
14 files changed:
}
ret = comedi_alloc_subdevices(dev, i);
}
ret = comedi_alloc_subdevices(dev, i);
- if (ret < 0) {
- /* FIXME this printk call should give a proper message, the
- * below line just maintains previous functionality */
- printk("comedi%d: 8255:", dev->minor);
printk(KERN_INFO "comedi%d: 8255:", dev->minor);
printk(KERN_INFO "comedi%d: 8255:", dev->minor);
n_subdevices++;
ret = comedi_alloc_subdevices(dev, n_subdevices);
n_subdevices++;
ret = comedi_alloc_subdevices(dev, n_subdevices);
- if (ret < 0) {
- printk(" - Allocation failed!\n");
pci1723_reset(dev);
subdev = 0;
pci1723_reset(dev);
subdev = 0;
dev->iobase = iobase;
dev->board_name = thisboard->name;
ret = comedi_alloc_subdevices(dev, layout->n_subdevs);
dev->iobase = iobase;
dev->board_name = thisboard->name;
ret = comedi_alloc_subdevices(dev, layout->n_subdevs);
- if (ret < 0) {
- dev_err(dev->class_dev, "error! out of memory!\n");
for (n = 0; n < dev->n_subdevices; n++) {
s = &dev->subdevices[n];
switch (layout->sdtype[n]) {
for (n = 0; n < dev->n_subdevices; n++) {
s = &dev->subdevices[n];
switch (layout->sdtype[n]) {
dev->iobase = iobase;
ret = comedi_alloc_subdevices(dev, 2);
dev->iobase = iobase;
ret = comedi_alloc_subdevices(dev, 2);
- if (ret < 0) {
- dev_err(dev->class_dev, "error! out of memory!\n");
s = dev->subdevices + 0;
/* digital i/o subdevice (8255) */
s = dev->subdevices + 0;
/* digital i/o subdevice (8255) */
dev->iobase = iobase;
ret = comedi_alloc_subdevices(dev, 1);
dev->iobase = iobase;
ret = comedi_alloc_subdevices(dev, 1);
- if (ret < 0) {
- dev_err(dev->class_dev, "error! out of memory!\n");
s = dev->subdevices + 0;
/* digital output subdevice */
s = dev->subdevices + 0;
/* digital output subdevice */
/* Allocate subdevices. There is only one! */
ret = comedi_alloc_subdevices(dev, 1);
/* Allocate subdevices. There is only one! */
ret = comedi_alloc_subdevices(dev, 1);
- if (ret < 0) {
- dev_err(dev->class_dev, "error! out of memory!\n");
s = dev->subdevices + 0;
/* Analog output subdevice. */
s = dev->subdevices + 0;
/* Analog output subdevice. */
devpriv->BADR5 = pci_resource_start(pcidev, 5);
if (comedi_alloc_subdevices(dev, 4) < 0) {
devpriv->BADR5 = pci_resource_start(pcidev, 5);
if (comedi_alloc_subdevices(dev, 4) < 0) {
- printk(KERN_ERR "comedi: dyna_pci10xx: "
- "failed allocating subdevices\n");
mutex_unlock(&start_stop_sem);
return -ENOMEM;
}
mutex_unlock(&start_stop_sem);
return -ENOMEM;
}
* Allocate 2 subdevs (32 + 16 DIO lines) or 3 32 DIO subdevs for the
* 96-channel version of the board.
*/
* Allocate 2 subdevs (32 + 16 DIO lines) or 3 32 DIO subdevs for the
* 96-channel version of the board.
*/
- if (comedi_alloc_subdevices(dev, 1) < 0) {
- printk(KERN_ERR "cannot allocate subdevice data structures\n");
+ if (comedi_alloc_subdevices(dev, 1) < 0)
s = dev->subdevices;
s->private = NULL;
s = dev->subdevices;
s->private = NULL;
*
* Allocate 1 AI + 1 AO + 2 DIO subdevs (24 lines per DIO)
*/
*
* Allocate 1 AI + 1 AO + 2 DIO subdevs (24 lines per DIO)
*/
- if (comedi_alloc_subdevices(dev, n_subdevs) < 0) {
- printk(KERN_ERR "comedi%d: cannot allocate subdevice data structures\n",
- dev->minor);
+ if (comedi_alloc_subdevices(dev, n_subdevs) < 0)
/* First, AI */
sdev_no = 0;
/* First, AI */
sdev_no = 0;
* Allocate 2 subdevs (32 + 16 DIO lines) or 3 32 DIO subdevs for the
* 96-channel version of the board.
*/
* Allocate 2 subdevs (32 + 16 DIO lines) or 3 32 DIO subdevs for the
* 96-channel version of the board.
*/
- if (comedi_alloc_subdevices(dev, n_subdevs) < 0) {
- dev_dbg(dev->hw_dev, "cannot allocate subdevice data structures\n");
+ if (comedi_alloc_subdevices(dev, n_subdevs) < 0)
- if (comedi_alloc_subdevices(dev, n_subd) < 0) {
- printk(KERN_ERR "out of memory\n");
+ if (comedi_alloc_subdevices(dev, n_subd) < 0)
/* initializing each of for same subdevices */
for (i = 0; i < n_subd; i++, iobase += UNIOXX5_SUBDEV_ODDS) {
/* initializing each of for same subdevices */
for (i = 0; i < n_subd; i++, iobase += UNIOXX5_SUBDEV_ODDS) {
/* allocate space for the subdevices */
ret = comedi_alloc_subdevices(dev, n_subdevs);
if (ret < 0) {
/* allocate space for the subdevices */
ret = comedi_alloc_subdevices(dev, n_subdevs);
if (ret < 0) {
- dev_err(&udev->interface->dev,
- "comedi%d: error alloc space for subdev\n", dev->minor);
up(&udev->sem);
return ret;
}
up(&udev->sem);
return ret;
}
/* allocate space for the subdevices */
ret = comedi_alloc_subdevices(dev, 1);
if (ret < 0) {
/* allocate space for the subdevices */
ret = comedi_alloc_subdevices(dev, 1);
if (ret < 0) {
- printk(KERN_ERR "comedi%d: usbduxfast: error alloc space for "
- "subdev\n", dev->minor);
up(&(usbduxfastsub[index].sem));
up(&start_stop_sem);
return ret;
up(&(usbduxfastsub[index].sem));
up(&start_stop_sem);
return ret;
/* allocate space for the subdevices */
ret = comedi_alloc_subdevices(dev, n_subdevs);
if (ret < 0) {
/* allocate space for the subdevices */
ret = comedi_alloc_subdevices(dev, n_subdevs);
if (ret < 0) {
- dev_err(&udev->interface->dev,
- "comedi%d: no space for subdev\n", dev->minor);
up(&udev->sem);
up(&start_stop_sem);
return ret;
up(&udev->sem);
up(&start_stop_sem);
return ret;