aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/usb/gadget/udc-core.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/gadget/udc-core.c b/drivers/usb/gadget/udc-core.c
index 59891b1c48fc..27768a7d986a 100644
--- a/drivers/usb/gadget/udc-core.c
+++ b/drivers/usb/gadget/udc-core.c
@@ -356,7 +356,8 @@ static int udc_bind_to_driver(struct usb_udc *udc, struct usb_gadget_driver *dri
356 kobject_uevent(&udc->dev.kobj, KOBJ_CHANGE); 356 kobject_uevent(&udc->dev.kobj, KOBJ_CHANGE);
357 return 0; 357 return 0;
358err1: 358err1:
359 dev_err(&udc->dev, "failed to start %s: %d\n", 359 if (ret != -EISNAM)
360 dev_err(&udc->dev, "failed to start %s: %d\n",
360 udc->driver->function, ret); 361 udc->driver->function, ret);
361 udc->driver = NULL; 362 udc->driver = NULL;
362 udc->dev.driver = NULL; 363 udc->dev.driver = NULL;