staging/comedi: Use dev_ printks in kcomedilib/kcomedilib_main.c
fixed below checkpatch warning. - WARNING: Prefer netdev_err(netdev, ... then dev_err(dev, ... then pr_err(... to printk(KERN_ERR ... Signed-off-by: YAMANE Toshiaki <yamanetoshi@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
26cbd46529
commit
49e8e44bcf
1 changed files with 3 additions and 2 deletions
|
@ -95,7 +95,8 @@ static int comedi_do_insn(struct comedi_device *dev,
|
||||||
s = &dev->subdevices[insn->subdev];
|
s = &dev->subdevices[insn->subdev];
|
||||||
|
|
||||||
if (s->type == COMEDI_SUBD_UNUSED) {
|
if (s->type == COMEDI_SUBD_UNUSED) {
|
||||||
printk(KERN_ERR "%d not useable subdevice\n", insn->subdev);
|
dev_err(dev->class_dev,
|
||||||
|
"%d not useable subdevice\n", insn->subdev);
|
||||||
ret = -EIO;
|
ret = -EIO;
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
@ -104,7 +105,7 @@ static int comedi_do_insn(struct comedi_device *dev,
|
||||||
|
|
||||||
ret = comedi_check_chanlist(s, 1, &insn->chanspec);
|
ret = comedi_check_chanlist(s, 1, &insn->chanspec);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
printk(KERN_ERR "bad chanspec\n");
|
dev_err(dev->class_dev, "bad chanspec\n");
|
||||||
ret = -EINVAL;
|
ret = -EINVAL;
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue