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

index d8e2c0c40106b9e95eb100b9d1c9d17c9f88c3f9..d40255f784df6824d4d3a6d00ca58bf15f319292 100644 (file)
@@ -1325,8 +1325,6 @@ static int fusb300_udc_stop(struct usb_gadget *g,
 {
        struct fusb300 *fusb300 = to_fusb300(g);
 
-       driver->unbind(&fusb300->gadget);
-
        init_controller(fusb300);
        fusb300->driver = NULL;