usb: gadget: r8a66597-udc: don't assign gadget.dev.release directly
authorFelipe Balbi <balbi@ti.com>
Tue, 26 Feb 2013 13:15:27 +0000 (15:15 +0200)
committerFelipe Balbi <balbi@ti.com>
Mon, 18 Mar 2013 09:17:54 +0000 (11:17 +0200)
udc-core provides a better way to handle release
methods, let's use it.

Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/r8a66597-udc.c

index 2de775dbd92c3e6dcc1ded5fc00b7405942faa4e..0b742d171843fc8579691930791d0926a7f3d958 100644 (file)
@@ -1915,7 +1915,6 @@ static int __init r8a66597_probe(struct platform_device *pdev)
 
        r8a66597->gadget.ops = &r8a66597_gadget_ops;
        r8a66597->gadget.max_speed = USB_SPEED_HIGH;
-       r8a66597->gadget.dev.release = pdev->dev.release;
        r8a66597->gadget.name = udc_name;
 
        init_timer(&r8a66597->timer);