Commit 29e7dbf3 authored by Felipe Balbi's avatar Felipe Balbi

usb: gadget: fsl_qe_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: default avatarFelipe Balbi <balbi@ti.com>
parent f7162e9e
......@@ -2521,7 +2521,6 @@ static int qe_udc_probe(struct platform_device *ofdev)
/* name: Identifies the controller hardware type. */
udc->gadget.name = driver_name;
udc->gadget.dev.release = qe_udc_release;
udc->gadget.dev.parent = &ofdev->dev;
/* initialize qe_ep struct */
......@@ -2585,7 +2584,8 @@ static int qe_udc_probe(struct platform_device *ofdev)
goto err5;
}
ret = usb_add_gadget_udc(&ofdev->dev, &udc->gadget);
ret = usb_add_gadget_udc_release(&ofdev->dev, &udc->gadget,
qe_udc_release);
if (ret)
goto err6;
......
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