Commit 698fa7a3 authored by Conrad Gomes's avatar Conrad Gomes Committed by Greg Kroah-Hartman

Staging: comedi: change pr_err to dev_err in __unioxx5_analog_read

This is a patch which subsitutes pr_err with dev_err in
__unioxx5_analog_read as it is the preferred way to log in device
drivers
Signed-off-by: default avatarConrad Gomes <conrad.s.j.gomes@gmail.com>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2851fcd5
......@@ -175,7 +175,7 @@ static int __unioxx5_analog_read(struct comedi_subdevice *s,
/* defining if given module can work on input */
if (usp->usp_module_type[module_no] & MODULE_OUTPUT_MASK) {
pr_err("comedi%d: module in position %d with id 0x%02x is for output only",
dev_err(csdev, "comedi%d: module in position %d with id 0x%02x is for output only",
minor, module_no, usp->usp_module_type[module_no]);
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment