From: H Hartley Sweeten Date: Mon, 29 Jul 2013 21:05:20 +0000 (-0700) Subject: staging: comedi: das16: cleanup printk message in board attach X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=ccb26aa72c9a5e7bf95ec148c734ca0821331922;p=openwrt%2Fstaging%2Fblogic.git staging: comedi: das16: cleanup printk message in board attach 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/das16.c b/drivers/staging/comedi/drivers/das16.c index 8f4b3dd3170f..2169cd728655 100644 --- a/drivers/staging/comedi/drivers/das16.c +++ b/drivers/staging/comedi/drivers/das16.c @@ -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; } }