mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-04 00:15:49 -04:00
staging: comedi: dt2814: convert a printk(KERN_ERR into a dev_err()
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
1cb62c86ef
commit
323cd3559f
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user