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

Staging: comedi: fix printk issue in daqboard2000.c

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

Converted printks to dev_dbg().
Signed-off-by: default avatarRavishankar Karkala Mallikarjunayya <ravishankar.km@greenturtles.in>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 904c0296
...@@ -574,14 +574,14 @@ static int initialize_daqboard2000(struct comedi_device *dev, ...@@ -574,14 +574,14 @@ static int initialize_daqboard2000(struct comedi_device *dev,
secr = readl(devpriv->plx + 0x6c); secr = readl(devpriv->plx + 0x6c);
if (!(secr & DAQBOARD2000_EEPROM_PRESENT)) { if (!(secr & DAQBOARD2000_EEPROM_PRESENT)) {
#ifdef DEBUG_EEPROM #ifdef DEBUG_EEPROM
printk("no serial eeprom\n"); dev_dbg(dev->hw_dev, "no serial eeprom\n");
#endif #endif
return -EIO; return -EIO;
} }
for (retry = 0; retry < 3; retry++) { for (retry = 0; retry < 3; retry++) {
#ifdef DEBUG_EEPROM #ifdef DEBUG_EEPROM
printk("Programming EEPROM try %x\n", retry); dev_dbg(dev->hw_dev, "Programming EEPROM try %x\n", retry);
#endif #endif
daqboard2000_resetLocalBus(dev); daqboard2000_resetLocalBus(dev);
...@@ -592,7 +592,8 @@ static int initialize_daqboard2000(struct comedi_device *dev, ...@@ -592,7 +592,8 @@ static int initialize_daqboard2000(struct comedi_device *dev,
if (cpld_array[i] == 0xff if (cpld_array[i] == 0xff
&& cpld_array[i + 1] == 0x20) { && cpld_array[i + 1] == 0x20) {
#ifdef DEBUG_EEPROM #ifdef DEBUG_EEPROM
printk("Preamble found at %d\n", i); dev_dbg(dev->hw_dev, "Preamble found at %d\n",
i);
#endif #endif
break; break;
} }
...@@ -605,7 +606,7 @@ static int initialize_daqboard2000(struct comedi_device *dev, ...@@ -605,7 +606,7 @@ static int initialize_daqboard2000(struct comedi_device *dev,
} }
if (i >= len) { if (i >= len) {
#ifdef DEBUG_EEPROM #ifdef DEBUG_EEPROM
printk("Programmed\n"); dev_dbg(dev->hw_dev, "Programmed\n");
#endif #endif
daqboard2000_resetLocalBus(dev); daqboard2000_resetLocalBus(dev);
daqboard2000_reloadPLX(dev); daqboard2000_reloadPLX(dev);
......
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