diff options
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/gadget/omap_udc.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/usb/gadget/omap_udc.c b/drivers/usb/gadget/omap_udc.c index 2ae4f6d69f74..e731373fd4d7 100644 --- a/drivers/usb/gadget/omap_udc.c +++ b/drivers/usb/gadget/omap_udc.c | |||
@@ -2079,10 +2079,7 @@ static int omap_udc_start(struct usb_gadget *g, | |||
2079 | &udc->gadget); | 2079 | &udc->gadget); |
2080 | if (status < 0) { | 2080 | if (status < 0) { |
2081 | ERR("can't bind to transceiver\n"); | 2081 | ERR("can't bind to transceiver\n"); |
2082 | if (driver->unbind) { | 2082 | udc->driver = NULL; |
2083 | driver->unbind(&udc->gadget); | ||
2084 | udc->driver = NULL; | ||
2085 | } | ||
2086 | goto done; | 2083 | goto done; |
2087 | } | 2084 | } |
2088 | } else { | 2085 | } else { |