Skip to content

Commit

Permalink
staging: comedi: me4000: remove the pci resource error messages
Browse files Browse the repository at this point in the history
Remove the error messages about the pci base address not being
available. They are just noise.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Sep 8, 2012
1 parent 0818dc0 commit 9c943f4
Showing 1 changed file with 4 additions and 28 deletions.
32 changes: 4 additions & 28 deletions drivers/staging/comedi/drivers/me4000.c
Original file line number Diff line number Diff line change
Expand Up @@ -383,45 +383,21 @@ static int me4000_probe(struct comedi_device *dev, struct comedi_devconfig *it)

static int get_registers(struct comedi_device *dev, struct pci_dev *pci_dev_p)
{
/*--------------------------- plx regbase -------------------------------*/

info->plx_regbase = pci_resource_start(pci_dev_p, 1);
if (info->plx_regbase == 0) {
printk(KERN_ERR
"comedi%d: me4000: get_registers(): "
"PCI base address 1 is not available\n", dev->minor);
if (!info->plx_regbase)
return -ENODEV;
}

/*--------------------------- me4000 regbase ----------------------------*/

info->me4000_regbase = pci_resource_start(pci_dev_p, 2);
if (info->me4000_regbase == 0) {
printk(KERN_ERR
"comedi%d: me4000: get_registers(): "
"PCI base address 2 is not available\n", dev->minor);
if (!info->me4000_regbase)
return -ENODEV;
}

/*--------------------------- timer regbase ------------------------------*/

info->timer_regbase = pci_resource_start(pci_dev_p, 3);
if (info->timer_regbase == 0) {
printk(KERN_ERR
"comedi%d: me4000: get_registers(): "
"PCI base address 3 is not available\n", dev->minor);
if (!info->timer_regbase)
return -ENODEV;
}

/*--------------------------- program regbase ----------------------------*/

info->program_regbase = pci_resource_start(pci_dev_p, 5);
if (info->program_regbase == 0) {
printk(KERN_ERR
"comedi%d: me4000: get_registers(): "
"PCI base address 5 is not available\n", dev->minor);
if (!info->program_regbase)
return -ENODEV;
}

return 0;
}
Expand Down

0 comments on commit 9c943f4

Please sign in to comment.