From: Chase Southwood Date: Mon, 1 Sep 2014 03:36:11 +0000 (-0500) Subject: staging: comedi: hwdrv_apci3501: change printk to dev_err X-Git-Tag: v3.18-rc1~130^2~847 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=2292d64c53e8acd4980eb3688c088e00fe8bf98b;p=karo-tx-linux.git staging: comedi: hwdrv_apci3501: change printk to dev_err dev_err() is preferred to printk() in device drivers. Signed-off-by: Chase Southwood Reviewed-by: Ian Abbott Cc: H Hartley Sweeten Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/addi-data/hwdrv_apci3501.c b/drivers/staging/comedi/drivers/addi-data/hwdrv_apci3501.c index e82c3fcd048b..339519a3d6b5 100644 --- a/drivers/staging/comedi/drivers/addi-data/hwdrv_apci3501.c +++ b/drivers/staging/comedi/drivers/addi-data/hwdrv_apci3501.c @@ -168,7 +168,7 @@ static int apci3501_read_insn_timer(struct comedi_device *dev, else if ((devpriv->b_TimerSelectMode != ADDIDATA_TIMER) && (devpriv->b_TimerSelectMode != ADDIDATA_WATCHDOG)) { - printk("\nIn ReadTimerCounterWatchdog :: Invalid Subdevice \n"); + dev_err(dev->class_dev, "Invalid subdevice.\n"); } return insn->n; }