usb: gadget: dummy_hcd: 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:47 +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/dummy_hcd.c

index 9d54c01cbf56b61309d1ffec75ab4f02a4e0ae92..ce751555f6ba0ca061e94beb5f907fd9275eee7c 100644 (file)
@@ -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);