From: H Hartley Sweeten Date: Tue, 26 Nov 2013 23:42:01 +0000 (-0700) Subject: staging: comedi: dt282x: convert printk() in dt282x_attach to a dev_err() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=753b53d9b169043c6d2c30f7f990c2e4f7b23b14;p=linux-beck.git staging: comedi: dt282x: convert printk() in dt282x_attach to a dev_err() Convert this printk message into a dev_err(). Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/dt282x.c b/drivers/staging/comedi/drivers/dt282x.c index 7de9c4429920..2e8d777d7bc1 100644 --- a/drivers/staging/comedi/drivers/dt282x.c +++ b/drivers/staging/comedi/drivers/dt282x.c @@ -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 */