Convert this printk message into a dev_err().

Signed-off-by: H Hartley Sweeten <hswee...@visionengravers.com>
Cc: Ian Abbott <abbo...@mev.co.uk>
Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org>
---
 drivers/staging/comedi/drivers/dt282x.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/comedi/drivers/dt282x.c 
b/drivers/staging/comedi/drivers/dt282x.c
index 7de9c44..2e8d777 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 */
-- 
1.8.4.4

_______________________________________________
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Reply via email to