summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2019-11-14 15:20:21 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2019-11-14 15:25:13 +0100
commite6e88fe65cdea3aff95fa2dd9fc41611003d669b (patch)
tree12cff4a24def1aa7e40759d971f028c20b3c9d3e
parent4d824b3235dde8189285f4ec37ffb147a03616c4 (diff)
downloadbarebox-e6e88fe65cdea3aff95fa2dd9fc41611003d669b.tar.gz
usb: dwc3: Remove wrong error messages
When phy_get() returns -ENOSYS or -ENODEV it means we can go without phy. Do not print an error message in this case. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--drivers/usb/dwc3/core.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c
index d3f9d9e..c17327c 100644
--- a/drivers/usb/dwc3/core.c
+++ b/drivers/usb/dwc3/core.c
@@ -914,7 +914,6 @@ static int dwc3_core_get_phy(struct dwc3 *dwc)
if (IS_ERR(dwc->usb2_generic_phy)) {
ret = PTR_ERR(dwc->usb2_generic_phy);
if (ret == -ENOSYS || ret == -ENODEV) {
- dev_err(dev, "no usb2 phy configured\n");
dwc->usb2_generic_phy = NULL;
} else if (ret == -EPROBE_DEFER) {
return ret;
@@ -928,7 +927,6 @@ static int dwc3_core_get_phy(struct dwc3 *dwc)
if (IS_ERR(dwc->usb3_generic_phy)) {
ret = PTR_ERR(dwc->usb3_generic_phy);
if (ret == -ENOSYS || ret == -ENODEV) {
- dev_err(dev, "no usb2 phy configured\n");
dwc->usb3_generic_phy = NULL;
} else if (ret == -EPROBE_DEFER) {
return ret;