mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-04 18:19:28 +09:00
staging: comedi: hwdrv_apci3501: change printk to dev_err
dev_err() is preferred to printk() in device drivers. Signed-off-by: Chase Southwood <chase.southwood@gmail.com> Reviewed-by: Ian Abbott <abbotti@mev.co.uk> Cc: H Hartley Sweeten <hsweeten@visionengravers.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
4689e6c2a3
commit
2292d64c53
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user