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 <[email protected]>
---
 drivers/usb/dwc3/core.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c
index d3f9d9ef27..c17327c791 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;
-- 
2.24.0


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

Reply via email to