Commit e861c768 authored by Felipe Balbi's avatar Felipe Balbi

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: default avatarFelipe Balbi <balbi@ti.com>
parent 7c9c3c7e
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment