usb: chipidea: Use dev_err() instead of pr_err()
dev_err() is more appropriate for printing error messages inside drivers, so switch to dev_err(). While at it also add the missing newlines. Signed-off-by: Fabio Estevam <festevam@gmail.com> Signed-off-by: Peter Chen <peter.chen@nxp.com>
This commit is contained in:
parent
ed5a419bb0
commit
b8a4f526fa
|
@ -523,8 +523,9 @@ int hw_device_reset(struct ci_hdrc *ci)
|
|||
hw_write(ci, OP_USBMODE, USBMODE_SLOM, USBMODE_SLOM);
|
||||
|
||||
if (hw_read(ci, OP_USBMODE, USBMODE_CM) != USBMODE_CM_DC) {
|
||||
pr_err("cannot enter in %s device mode", ci_role(ci)->name);
|
||||
pr_err("lpm = %i", ci->hw_bank.lpm);
|
||||
dev_err(ci->dev, "cannot enter in %s device mode\n",
|
||||
ci_role(ci)->name);
|
||||
dev_err(ci->dev, "lpm = %i\n", ci->hw_bank.lpm);
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue