From: Conrad Gomes Date: Thu, 21 Nov 2013 19:57:55 +0000 (+0530) Subject: Staging: comedi: change pr_err to dev_err in __unioxx5_analog_read X-Git-Tag: v3.14-rc1~13^2~779 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=698fa7a3cc364ea6667016feed129d402cdeca2b;p=platform%2Fkernel%2Flinux-exynos.git 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 Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/unioxx5.c b/drivers/staging/comedi/drivers/unioxx5.c index 31736ed..7edbd5e 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; }