usb: gadget: omap_udc: should not call gadget driver's .unbind
authorPeter Chen <peter.chen@freescale.com>
Wed, 21 May 2014 01:04:21 +0000 (09:04 +0800)
committerFelipe Balbi <balbi@ti.com>
Mon, 30 Jun 2014 18:25:20 +0000 (13:25 -0500)
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>
drivers/usb/gadget/omap_udc.c

index 2ae4f6d69f74fa946f325d6436ae2774c551a230..e731373fd4d713e1b8ad597a3f62081ede483bf3 100644 (file)
@@ -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 {