diff options
author | Felipe Balbi <balbi@ti.com> | 2013-02-26 08:15:27 -0500 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-03-18 05:17:53 -0400 |
commit | 2fb29f215cc8f23eedabcc289cd4b5280a054aad (patch) | |
tree | 4f728667a0dd414bf4007dbe9951e641b2712204 | |
parent | 2901df68499d75cb43d37495797f7ca73fb548a4 (diff) |
usb: gadget: omap_udc: don't assign gadget.dev.release directly
udc-core provides a better way to handle release
methods, let's use it.
Signed-off-by: Felipe Balbi <balbi@ti.com>
-rw-r--r-- | drivers/usb/gadget/omap_udc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/gadget/omap_udc.c b/drivers/usb/gadget/omap_udc.c index 19420ad128ce..b8ed74a823cb 100644 --- a/drivers/usb/gadget/omap_udc.c +++ b/drivers/usb/gadget/omap_udc.c | |||
@@ -2628,7 +2628,6 @@ omap_udc_setup(struct platform_device *odev, struct usb_phy *xceiv) | |||
2628 | udc->gadget.speed = USB_SPEED_UNKNOWN; | 2628 | udc->gadget.speed = USB_SPEED_UNKNOWN; |
2629 | udc->gadget.max_speed = USB_SPEED_FULL; | 2629 | udc->gadget.max_speed = USB_SPEED_FULL; |
2630 | udc->gadget.name = driver_name; | 2630 | udc->gadget.name = driver_name; |
2631 | udc->gadget.dev.release = omap_udc_release; | ||
2632 | udc->transceiver = xceiv; | 2631 | udc->transceiver = xceiv; |
2633 | 2632 | ||
2634 | /* ep0 is special; put it right after the SETUP buffer */ | 2633 | /* ep0 is special; put it right after the SETUP buffer */ |
@@ -2902,7 +2901,8 @@ bad_on_1710: | |||
2902 | } | 2901 | } |
2903 | 2902 | ||
2904 | create_proc_file(); | 2903 | create_proc_file(); |
2905 | status = usb_add_gadget_udc(&pdev->dev, &udc->gadget); | 2904 | status = usb_add_gadget_udc_release(&pdev->dev, &udc->gadget, |
2905 | omap_udc_release); | ||
2906 | if (status) | 2906 | if (status) |
2907 | goto cleanup4; | 2907 | goto cleanup4; |
2908 | 2908 | ||