summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/omap_udc.c
diff options
context:
space:
mode:
authorPeter Chen <peter.chen@freescale.com>2014-05-21 09:04:21 +0800
committerFelipe Balbi <balbi@ti.com>2014-06-30 13:25:20 -0500
commit50f741c8dd681410a1bfd822eb8cb0e2ec387539 (patch)
tree60ee8c429f373dfa82f7e30501aeff544080b6f6 /drivers/usb/gadget/omap_udc.c
parenta6c7c1c49c358b80b313b95eed2e199133f4dab2 (diff)
downloadblackbird-op-linux-50f741c8dd681410a1bfd822eb8cb0e2ec387539.tar.gz
blackbird-op-linux-50f741c8dd681410a1bfd822eb8cb0e2ec387539.zip
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/usb/gadget/omap_udc.c')
-rw-r--r--drivers/usb/gadget/omap_udc.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/usb/gadget/omap_udc.c b/drivers/usb/gadget/omap_udc.c
index 2ae4f6d69f74..e731373fd4d7 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 {
OpenPOWER on IntegriCloud