Commit 2c6abc58 authored by Ravishankar karkala Mallikarjunayya's avatar Ravishankar karkala Mallikarjunayya Committed by Greg Kroah-Hartman

Staging: comedi: fix printk issue in cb_pcimdas.c

This is a patch to the cb_pcimdas.c file that fixes up a printk
warning found by the checkpatch.pl tool.

converted printks to dev_printk.
Removed unnecessary printk statements.
Signed-off-by: default avatarRavishankar Karkala Mallikarjunayya <ravishankar.km@greenturtles.in>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 610b8ed9
...@@ -212,8 +212,6 @@ static int cb_pcimdas_attach(struct comedi_device *dev, ...@@ -212,8 +212,6 @@ static int cb_pcimdas_attach(struct comedi_device *dev,
int index; int index;
/* int i; */ /* int i; */
printk("comedi%d: cb_pcimdas: ", dev->minor);
/* /*
* Allocate the private structure area. * Allocate the private structure area.
*/ */
...@@ -223,7 +221,6 @@ static int cb_pcimdas_attach(struct comedi_device *dev, ...@@ -223,7 +221,6 @@ static int cb_pcimdas_attach(struct comedi_device *dev,
/* /*
* Probe the device to determine what device in the series it is. * Probe the device to determine what device in the series it is.
*/ */
printk("\n");
for_each_pci_dev(pcidev) { for_each_pci_dev(pcidev) {
/* is it not a computer boards card? */ /* is it not a computer boards card? */
...@@ -248,26 +245,26 @@ static int cb_pcimdas_attach(struct comedi_device *dev, ...@@ -248,26 +245,26 @@ static int cb_pcimdas_attach(struct comedi_device *dev,
} }
} }
printk("No supported ComputerBoards/MeasurementComputing card found on " dev_err(dev->hw_dev, "No supported ComputerBoards/MeasurementComputing card found on requested position\n");
"requested position\n");
return -EIO; return -EIO;
found: found:
printk("Found %s on bus %i, slot %i\n", cb_pcimdas_boards[index].name, dev_dbg(dev->hw_dev, "Found %s on bus %i, slot %i\n",
pcidev->bus->number, PCI_SLOT(pcidev->devfn)); cb_pcimdas_boards[index].name, pcidev->bus->number,
PCI_SLOT(pcidev->devfn));
/* Warn about non-tested features */ /* Warn about non-tested features */
switch (thisboard->device_id) { switch (thisboard->device_id) {
case 0x56: case 0x56:
break; break;
default: default:
printk("THIS CARD IS UNSUPPORTED.\n" dev_dbg(dev->hw_dev, "THIS CARD IS UNSUPPORTED.\n"
"PLEASE REPORT USAGE TO <mocelet@sucs.org>\n"); "PLEASE REPORT USAGE TO <mocelet@sucs.org>\n");
} }
if (comedi_pci_enable(pcidev, "cb_pcimdas")) { if (comedi_pci_enable(pcidev, "cb_pcimdas")) {
printk(" Failed to enable PCI device and request regions\n"); dev_err(dev->hw_dev, "Failed to enable PCI device and request regions\n");
return -EIO; return -EIO;
} }
...@@ -333,8 +330,6 @@ static int cb_pcimdas_attach(struct comedi_device *dev, ...@@ -333,8 +330,6 @@ static int cb_pcimdas_attach(struct comedi_device *dev,
else else
s->type = COMEDI_SUBD_UNUSED; s->type = COMEDI_SUBD_UNUSED;
printk("attached\n");
return 1; return 1;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment