Commit 59139706 authored by Felipe Balbi's avatar Felipe Balbi

usb: gadget: r8a66597-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 ef98f746
...@@ -1915,7 +1915,6 @@ static int __init r8a66597_probe(struct platform_device *pdev) ...@@ -1915,7 +1915,6 @@ static int __init r8a66597_probe(struct platform_device *pdev)
r8a66597->gadget.ops = &r8a66597_gadget_ops; r8a66597->gadget.ops = &r8a66597_gadget_ops;
r8a66597->gadget.max_speed = USB_SPEED_HIGH; r8a66597->gadget.max_speed = USB_SPEED_HIGH;
r8a66597->gadget.dev.release = pdev->dev.release;
r8a66597->gadget.name = udc_name; r8a66597->gadget.name = udc_name;
init_timer(&r8a66597->timer); init_timer(&r8a66597->timer);
......
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