diff options
author | Peter Chen <peter.chen@freescale.com> | 2014-05-21 01:04:21 (GMT) |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2014-06-30 18:25:20 (GMT) |
commit | 50f741c8dd681410a1bfd822eb8cb0e2ec387539 (patch) | |
tree | 60ee8c429f373dfa82f7e30501aeff544080b6f6 /drivers | |
parent | a6c7c1c49c358b80b313b95eed2e199133f4dab2 (diff) | |
download | linux-50f741c8dd681410a1bfd822eb8cb0e2ec387539.tar.xz |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/gadget/omap_udc.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/usb/gadget/omap_udc.c b/drivers/usb/gadget/omap_udc.c index 2ae4f6d..e731373 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 { |