[PATCH 04/30] Staging: comedi: fix printk issue in daqboard2000.c
From: Ravishankar karkala Mallikarjunayya
Date: Thu Dec 08 2011 - 07:53:18 EST
This is a patch to the daqboard2000.c file that fixes up a
printk warning found by the checkpatch.pl tool.
Removed ifdef DEBUG_EEPROM.
Converted printks to pr_<levels>.
Signed-off-by: Ravishankar Karkala Mallikarjunayya <ravishankar.km@xxxxxxxxxxxxxxx>
---
drivers/staging/comedi/drivers/daqboard2000.c | 17 ++++-------------
1 files changed, 4 insertions(+), 13 deletions(-)
diff --git a/drivers/staging/comedi/drivers/daqboard2000.c b/drivers/staging/comedi/drivers/daqboard2000.c
index 265c650..7066d8f 100644
--- a/drivers/staging/comedi/drivers/daqboard2000.c
+++ b/drivers/staging/comedi/drivers/daqboard2000.c
@@ -573,17 +573,12 @@ static int initialize_daqboard2000(struct comedi_device *dev,
/* Check to make sure the serial eeprom is present on the board */
secr = readl(devpriv->plx + 0x6c);
if (!(secr & DAQBOARD2000_EEPROM_PRESENT)) {
-#ifdef DEBUG_EEPROM
- printk("no serial eeprom\n");
-#endif
+ pr_debug("no serial eeprom\n");
return -EIO;
}
for (retry = 0; retry < 3; retry++) {
-#ifdef DEBUG_EEPROM
- printk("Programming EEPROM try %x\n", retry);
-#endif
-
+ pr_debug("Programming EEPROM try %x\n", retry);
daqboard2000_resetLocalBus(dev);
daqboard2000_reloadPLX(dev);
daqboard2000_pulseProgPin(dev);
@@ -591,9 +586,7 @@ static int initialize_daqboard2000(struct comedi_device *dev,
for (i = 0; i < len; i++) {
if (cpld_array[i] == 0xff
&& cpld_array[i + 1] == 0x20) {
-#ifdef DEBUG_EEPROM
- printk("Preamble found at %d\n", i);
-#endif
+ pr_debug("Preamble found at %d\n", i);
break;
}
}
@@ -604,9 +597,7 @@ static int initialize_daqboard2000(struct comedi_device *dev,
break;
}
if (i >= len) {
-#ifdef DEBUG_EEPROM
- printk("Programmed\n");
-#endif
+ pr_debug("Programmed\n");
daqboard2000_resetLocalBus(dev);
daqboard2000_reloadPLX(dev);
result = 0;
--
1.7.0.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/