diff options
author | Fabio Estevam <festevam@gmail.com> | 2019-06-05 18:08:49 +0200 |
---|---|---|
committer | Peter Chen <peter.chen@nxp.com> | 2019-06-14 11:40:12 +0200 |
commit | b8a4f526fabafa2b701644c0a8a6220f39c3cbf1 (patch) | |
tree | 04e12c4e19224bf418bbbf83796f97b63df94f5d /drivers/usb | |
parent | usb: chipidea: imx: "fsl,usbphy" phandle is not mandatory now (diff) | |
download | linux-b8a4f526fabafa2b701644c0a8a6220f39c3cbf1.tar.xz linux-b8a4f526fabafa2b701644c0a8a6220f39c3cbf1.zip |
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>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/chipidea/core.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/usb/chipidea/core.c b/drivers/usb/chipidea/core.c index 27749ace2d93..26062d610c20 100644 --- a/drivers/usb/chipidea/core.c +++ b/drivers/usb/chipidea/core.c @@ -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; } |