Skip to content

Commit

Permalink
usb: gadget: omap_udc: don't assign gadget.dev.release directly
Browse files Browse the repository at this point in the history
udc-core provides a better way to handle release
methods, let's use it.

Signed-off-by: Felipe Balbi <balbi@ti.com>
  • Loading branch information
Felipe Balbi committed Mar 18, 2013
1 parent 2901df6 commit 2fb29f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/usb/gadget/omap_udc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2628,7 +2628,6 @@ omap_udc_setup(struct platform_device *odev, struct usb_phy *xceiv)
udc->gadget.speed = USB_SPEED_UNKNOWN;
udc->gadget.max_speed = USB_SPEED_FULL;
udc->gadget.name = driver_name;
udc->gadget.dev.release = omap_udc_release;
udc->transceiver = xceiv;

/* ep0 is special; put it right after the SETUP buffer */
Expand Down Expand Up @@ -2902,7 +2901,8 @@ static int omap_udc_probe(struct platform_device *pdev)
}

create_proc_file();
status = usb_add_gadget_udc(&pdev->dev, &udc->gadget);
status = usb_add_gadget_udc_release(&pdev->dev, &udc->gadget,
omap_udc_release);
if (status)
goto cleanup4;

Expand Down

0 comments on commit 2fb29f2

Please sign in to comment.