summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorConrad Gomes <conrad.s.j.gomes@gmail.com>2013-11-22 01:27:55 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-11-25 11:37:40 -0800
commit698fa7a3cc364ea6667016feed129d402cdeca2b (patch)
tree7ae057db08e72cc2f7bb6269d36537dcec71a368 /drivers
parent2851fcd52073b03e865128cad8161891094ecc02 (diff)
downloadlinux-698fa7a3cc364ea6667016feed129d402cdeca2b.tar.bz2
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: 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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/comedi/drivers/unioxx5.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/comedi/drivers/unioxx5.c b/drivers/staging/comedi/drivers/unioxx5.c
index 31736eddd615..7edbd5e97731 100644
--- a/drivers/staging/comedi/drivers/unioxx5.c
+++ b/drivers/staging/comedi/drivers/unioxx5.c
@@ -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;
}