Commit 50f741c8 authored by Peter Chen's avatar Peter Chen Committed by Felipe Balbi

usb: gadget: omap_udc: should not call gadget driver's .unbind

It has already been covered by udc core
Signed-off-by: default avatarPeter Chen <peter.chen@freescale.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent a6c7c1c4
...@@ -2079,10 +2079,7 @@ static int omap_udc_start(struct usb_gadget *g, ...@@ -2079,10 +2079,7 @@ static int omap_udc_start(struct usb_gadget *g,
&udc->gadget); &udc->gadget);
if (status < 0) { if (status < 0) {
ERR("can't bind to transceiver\n"); ERR("can't bind to transceiver\n");
if (driver->unbind) { udc->driver = NULL;
driver->unbind(&udc->gadget);
udc->driver = NULL;
}
goto done; goto done;
} }
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment