Commit b252ebfc authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

staging: comedi: ni_atmio: convert printk to dev_err in ni_getboardtype()

Convert these printk() messages to dev_err().
Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 221fa08c
......@@ -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;
}
......
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