]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging/comedi: Use dev_ printks in drivers/quatech_daqp_cs.c
authorYAMANE Toshiaki <yamanetoshi@gmail.com>
Sat, 27 Oct 2012 21:47:26 +0000 (06:47 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 29 Oct 2012 21:59:39 +0000 (14:59 -0700)
fixed below checkpatch warnings.
- WARNING: printk() should include KERN_ facility level

Signed-off-by: YAMANE Toshiaki <yamanetoshi@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/quatech_daqp_cs.c

index 806523c4c464094533d1e6255870619067ca3a34..ee9158b203c9972699d0a2f0621db0a41c43ea91 100644 (file)
@@ -300,7 +300,7 @@ static enum irqreturn daqp_interrupt(int irq, void *dev_id)
                        if (status & DAQP_STATUS_DATA_LOST) {
                                s->async->events |=
                                    COMEDI_CB_EOA | COMEDI_CB_OVERFLOW;
-                               printk("daqp: data lost\n");
+                               dev_warn(dev->class_dev, "data lost\n");
                                daqp_ai_cancel(dev, s);
                                break;
                        }
@@ -398,7 +398,8 @@ static int daqp_ai_insn_read(struct comedi_device *dev,
               && (inb(dev->iobase + DAQP_STATUS) & DAQP_STATUS_EVENTS))
                ;
        if (!counter) {
-               printk("daqp: couldn't clear interrupts in status register\n");
+               dev_err(dev->class_dev,
+                       "couldn't clear interrupts in status register\n");
                return -1;
        }
 
@@ -824,8 +825,8 @@ static int daqp_attach(struct comedi_device *dev, struct comedi_devconfig *it)
        struct comedi_subdevice *s;
 
        if (it->options[0] < 0 || it->options[0] >= MAX_DEV || !local) {
-               printk("comedi%d: No such daqp device %d\n",
-                      dev->minor, it->options[0]);
+               dev_err(dev->class_dev, "No such daqp device %d\n",
+                       it->options[0]);
                return -EIO;
        }