瀏覽代碼

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

It has already been covered by udc core

Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Peter Chen 11 年之前
父節點
當前提交
50f741c8dd
共有 1 個文件被更改,包括 1 次插入4 次删除
  1. 1 4
      drivers/usb/gadget/omap_udc.c

+ 1 - 4
drivers/usb/gadget/omap_udc.c

@@ -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) {
-				driver->unbind(&udc->gadget);
-				udc->driver = NULL;
-			}
+			udc->driver = NULL;
 			goto done;
 			goto done;
 		}
 		}
 	} else {
 	} else {