From: Peter Chen Date: Wed, 21 May 2014 01:04:21 +0000 (+0800) Subject: usb: gadget: omap_udc: should not call gadget driver's .unbind X-Git-Tag: v3.17-rc1~121^2~18^2~46 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=50f741c8dd681410a1bfd822eb8cb0e2ec387539;p=karo-tx-linux.git usb: gadget: omap_udc: should not call gadget driver's .unbind It has already been covered by udc core Signed-off-by: Peter Chen Signed-off-by: Felipe Balbi --- 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, &udc->gadget); if (status < 0) { ERR("can't bind to transceiver\n"); - if (driver->unbind) { - driver->unbind(&udc->gadget); - udc->driver = NULL; - } + udc->driver = NULL; goto done; } } else {