From: H Hartley Sweeten Date: Tue, 26 Nov 2013 23:41:55 +0000 (-0700) Subject: staging: comedi: dt2814: convert a printk(KERN_ERR into a dev_err() X-Git-Tag: v3.14-rc1~13^2~630 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=323cd3559f2443c3d5be511ea298cfadade71c17;p=kernel%2Fkernel-generic.git 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 Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/dt2814.c b/drivers/staging/comedi/drivers/dt2814.c index 3a05588..c3f8208 100644 --- a/drivers/staging/comedi/drivers/dt2814.c +++ b/drivers/staging/comedi/drivers/dt2814.c @@ -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);