usb: gadget: m66592-udc: don't assign gadget.dev.release directly
authorFelipe Balbi <balbi@ti.com>
Tue, 26 Feb 2013 13:15:26 +0000 (15:15 +0200)
committerFelipe Balbi <balbi@ti.com>
Mon, 18 Mar 2013 09:17:49 +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/m66592-udc.c

index 21a20a6ffb667f16a2a4b5404b3ce3fe5c66fd56..866ef09992478e18c114592305297efe640d225f 100644 (file)
@@ -1606,7 +1606,6 @@ static int __init m66592_probe(struct platform_device *pdev)
 
        m66592->gadget.ops = &m66592_gadget_ops;
        m66592->gadget.max_speed = USB_SPEED_HIGH;
-       m66592->gadget.dev.release = pdev->dev.release;
        m66592->gadget.name = udc_name;
 
        init_timer(&m66592->timer);