staging: comedi: dt2814: convert a printk(KERN_ERR into a dev_err()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 26 Nov 2013 23:41:55 +0000 (16:41 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Dec 2013 17:20:21 +0000 (09:20 -0800)
Convert this printk message into a dev_dev().

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/dt2814.c

index 3a05588f722fbed427fda2bd679340c341efd3e5..c3f82087ae10bf042ada5557a5485825a7aee05a 100644 (file)
@@ -246,7 +246,7 @@ static int dt2814_attach(struct comedi_device *dev, struct comedi_devconfig *it)
        outb(0, dev->iobase + DT2814_CSR);
        udelay(100);
        if (inb(dev->iobase + DT2814_CSR) & DT2814_ERR) {
-               printk(KERN_ERR "reset error (fatal)\n");
+               dev_err(dev->class_dev, "reset error (fatal)\n");
                return -EIO;
        }
        i = inb(dev->iobase + DT2814_DATA);