]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: comedi: dt282x: convert printk() in dt282x_attach to a dev_err()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 26 Nov 2013 23:42:01 +0000 (16:42 -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_err().

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/dt282x.c

index 7de9c4429920b0df0511943dd1107391a918b07c..2e8d777d7bc1fd56fd7f6e2e19a6ebc9083c4e45 100644 (file)
@@ -1133,7 +1133,7 @@ static int dt282x_attach(struct comedi_device *dev, struct comedi_devconfig *it)
             != DT2821_SUPCSR_VAL) ||
            ((inw(dev->iobase + DT2821_TMRCTR) & DT2821_TMRCTR_MASK)
             != DT2821_TMRCTR_VAL)) {
-               printk(KERN_ERR " board not found");
+               dev_err(dev->class_dev, "board not found\n");
                return -EIO;
        }
        /* should do board test */