summaryrefslogtreecommitdiff
path: root/drivers/usb
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2013-02-26 15:15:27 +0200
committerFelipe Balbi <balbi@ti.com>2013-03-18 11:17:51 +0200
commite861c768e57fd74ff947eadcf8ff86c01ba170d6 (patch)
tree0c5c8ab9623f75ebbc77fd435cffee5c6693f628 /drivers/usb
parent7c9c3c7e1855e28d35c8d70607e68690def85fed (diff)
usb: gadget: mv_udc_core: 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')
-rw-r--r--drivers/usb/gadget/mv_udc_core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/gadget/mv_udc_core.c b/drivers/usb/gadget/mv_udc_core.c
index d1b243d7666..d278e8f512c 100644
--- a/drivers/usb/gadget/mv_udc_core.c
+++ b/drivers/usb/gadget/mv_udc_core.c
@@ -2265,7 +2265,6 @@ static int mv_udc_probe(struct platform_device *pdev)
udc->gadget.max_speed = USB_SPEED_HIGH; /* support dual speed */
/* the "gadget" abstracts/virtualizes the controller */
- udc->gadget.dev.release = gadget_release;
udc->gadget.name = driver_name; /* gadget name */
eps_init(udc);
@@ -2305,7 +2304,8 @@ static int mv_udc_probe(struct platform_device *pdev)
else
udc->vbus_active = 1;
- retval = usb_add_gadget_udc(&pdev->dev, &udc->gadget);
+ retval = usb_add_gadget_udc_release(&pdev->dev, &udc->gadget,
+ gadget_release);
if (retval)
goto err_create_workqueue;