Commit f7162e9e authored by Felipe Balbi's avatar Felipe Balbi

usb: gadget: dummy_hcd: 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 a995d9e2
......@@ -935,11 +935,6 @@ static int dummy_udc_stop(struct usb_gadget *g,
/* The gadget structure is stored inside the hcd structure and will be
* released along with it. */
static void dummy_gadget_release(struct device *dev)
{
return;
}
static void init_dummy_udc_hw(struct dummy *dum)
{
int i;
......@@ -983,7 +978,6 @@ static int dummy_udc_probe(struct platform_device *pdev)
dum->gadget.max_speed = USB_SPEED_SUPER;
dum->gadget.dev.parent = &pdev->dev;
dum->gadget.dev.release = dummy_gadget_release;
init_dummy_udc_hw(dum);
rc = usb_add_gadget_udc(&pdev->dev, &dum->gadget);
......
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