diff options
| author | H Hartley Sweeten <[email protected]> | 2014-07-18 13:29:55 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2014-07-18 16:08:01 -0700 |
| commit | b252ebfccf61ccd6bbb04cdfd3ec1c33ea65b5db (patch) | |
| tree | 912f555eb20b6b37cc64cacfeef4ae65d68742e9 | |
| parent | 221fa08c53261f7694b07c22e91d43fdbef09b62 (diff) | |
staging: comedi: ni_atmio: convert printk to dev_err in ni_getboardtype()
Convert these printk() messages to dev_err().
Signed-off-by: H Hartley Sweeten <[email protected]>
Cc: Ian Abbott <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
| -rw-r--r-- | drivers/staging/comedi/drivers/ni_atmio.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/staging/comedi/drivers/ni_atmio.c b/drivers/staging/comedi/drivers/ni_atmio.c index 8af5a0f19d72..9ca8a8262b7e 100644 --- a/drivers/staging/comedi/drivers/ni_atmio.c +++ b/drivers/staging/comedi/drivers/ni_atmio.c @@ -288,11 +288,13 @@ static int ni_getboardtype(struct comedi_device *dev) } if (device_id == 255) - printk(" can't find board\n"); + dev_err(dev->class_dev, "can't find board\n"); else if (device_id == 0) - printk(" EEPROM read error (?) or device not found\n"); + dev_err(dev->class_dev, + "EEPROM read error (?) or device not found\n"); else - printk(" unknown device ID %d -- contact author\n", device_id); + dev_err(dev->class_dev, + "unknown device ID %d -- contact author\n", device_id); return -1; } |