diff options
author | Peter Chen <peter.chen@freescale.com> | 2014-05-20 21:04:21 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2014-06-30 14:25:20 -0400 |
commit | 50f741c8dd681410a1bfd822eb8cb0e2ec387539 (patch) | |
tree | 60ee8c429f373dfa82f7e30501aeff544080b6f6 /drivers/usb | |
parent | a6c7c1c49c358b80b313b95eed2e199133f4dab2 (diff) |
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')
-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 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, | |||
2079 | &udc->gadget); | 2079 | &udc->gadget); |
2080 | if (status < 0) { | 2080 | if (status < 0) { |
2081 | ERR("can't bind to transceiver\n"); | 2081 | ERR("can't bind to transceiver\n"); |
2082 | if (driver->unbind) { | 2082 | udc->driver = NULL; |
2083 | driver->unbind(&udc->gadget); | ||
2084 | udc->driver = NULL; | ||
2085 | } | ||
2086 | goto done; | 2083 | goto done; |
2087 | } | 2084 | } |
2088 | } else { | 2085 | } else { |