summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/omap_udc.c
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2013-02-26 13:15:27 (GMT)
committerFelipe Balbi <balbi@ti.com>2013-03-18 09:17:53 (GMT)
commit2fb29f215cc8f23eedabcc289cd4b5280a054aad (patch)
tree4f728667a0dd414bf4007dbe9951e641b2712204 /drivers/usb/gadget/omap_udc.c
parent2901df68499d75cb43d37495797f7ca73fb548a4 (diff)
downloadlinux-2fb29f215cc8f23eedabcc289cd4b5280a054aad.tar.xz
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>
Diffstat (limited to 'drivers/usb/gadget/omap_udc.c')
-rw-r--r--drivers/usb/gadget/omap_udc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/gadget/omap_udc.c b/drivers/usb/gadget/omap_udc.c
index 19420ad..b8ed74a 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)
udc->gadget.speed = USB_SPEED_UNKNOWN;
udc->gadget.max_speed = USB_SPEED_FULL;
udc->gadget.name = driver_name;
- udc->gadget.dev.release = omap_udc_release;
udc->transceiver = xceiv;
/* ep0 is special; put it right after the SETUP buffer */
@@ -2902,7 +2901,8 @@ bad_on_1710:
}
create_proc_file();
- status = usb_add_gadget_udc(&pdev->dev, &udc->gadget);
+ status = usb_add_gadget_udc_release(&pdev->dev, &udc->gadget,
+ omap_udc_release);
if (status)
goto cleanup4;