staging: comedi: das16: cleanup printk message in board attach
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Mon, 29 Jul 2013 21:05:20 +0000 (14:05 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Aug 2013 00:38:02 +0000 (17:38 -0700)
Convert this printk message into a dev_err().

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>
drivers/staging/comedi/drivers/das16.c

index 8f4b3dd..2169cd7 100644 (file)
@@ -1025,9 +1025,8 @@ static int das16_attach(struct comedi_device *dev, struct comedi_devconfig *it)
        if (it->options[3]) {
                if (it->options[3] != 0 &&
                    it->options[3] != 1 && it->options[3] != 10) {
-                       printk
-                           ("\n Invalid option.  Master clock must be set "
-                                                       "to 1 or 10 (MHz)\n");
+                       dev_err(dev->class_dev,
+                               "Invalid option. Master clock must be set to 1 or 10 (MHz)\n");
                        return -EINVAL;
                }
        }