From: H Hartley Sweeten Date: Tue, 26 Nov 2013 23:41:47 +0000 (-0700) Subject: staging: comedi: dmm32at: convert a printk(KERN_ERR to a dev->err() X-Git-Tag: firefly_0821_release~176^2~4489^2~638 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=45d351031e1326a4d0a988c776f23673f7e1ffd2;p=firefly-linux-kernel-4.4.55.git staging: comedi: dmm32at: convert a printk(KERN_ERR to a dev->err() Convert this printk message to a dev_err() message. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/dmm32at.c b/drivers/staging/comedi/drivers/dmm32at.c index 1831f3288ca8..174735d37b51 100644 --- a/drivers/staging/comedi/drivers/dmm32at.c +++ b/drivers/staging/comedi/drivers/dmm32at.c @@ -710,7 +710,7 @@ static int dmm32at_attach(struct comedi_device *dev, if ((ailo != 0x00) || (aihi != 0x1f) || (fifostat != 0x80) || (aistat != 0x60 || (intstat != 0x00) || airback != 0x0c)) { - printk(KERN_ERR "dmmat32: board detection failed\n"); + dev_err(dev->class_dev, "board detection failed\n"); return -EIO; }