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

index ccbb3023cf42cb48f7660ceca3f3e194f195e920..57944ee8ad9012c44a93079b109c4dd7a29f527a 100644 (file)
@@ -1957,7 +1957,6 @@ static int fsl_udc_start(struct usb_gadget *g,
                                                    &udc_controller->gadget);
                        if (retval < 0) {
                                ERR("can't bind to transceiver\n");
-                               driver->unbind(&udc_controller->gadget);
                                udc_controller->driver = 0;
                                return retval;
                        }