Staging: comedi: change pr_err to dev_err in __unioxx5_analog_read
authorConrad Gomes <conrad.s.j.gomes@gmail.com>
Thu, 21 Nov 2013 19:57:55 +0000 (01:27 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Nov 2013 19:37:40 +0000 (11:37 -0800)
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: Conrad Gomes <conrad.s.j.gomes@gmail.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/unioxx5.c

index 31736eddd615856216afdf6c8f3513093c5358cc..7edbd5e97731409b6d0fbcac295fe2c797fdb3b8 100644 (file)
@@ -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;
        }