udc-core provides a better way to handle release
methods, let's use it.
Signed-off-by: Felipe Balbi <balbi@ti.com>
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 */
}
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;