Skip to content

Commit

Permalink
usb: gadget: bcm63xx_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 e1f07ce commit a995d9e
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions drivers/usb/gadget/bcm63xx_udc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2303,17 +2303,6 @@ static void bcm63xx_udc_cleanup_debugfs(struct bcm63xx_udc *udc)
* Driver init/exit
***********************************************************************/

/**
* bcm63xx_udc_gadget_release - Called from device_release().
* @dev: Unused.
*
* We get a warning if this function doesn't exist, but it's empty because
* we don't have to free any of the memory allocated with the devm_* APIs.
*/
static void bcm63xx_udc_gadget_release(struct device *dev)
{
}

/**
* bcm63xx_udc_probe - Initialize a new instance of the UDC.
* @pdev: Platform device struct from the bcm63xx BSP code.
Expand Down Expand Up @@ -2369,7 +2358,6 @@ static int bcm63xx_udc_probe(struct platform_device *pdev)

udc->gadget.ops = &bcm63xx_udc_ops;
udc->gadget.name = dev_name(dev);
udc->gadget.dev.release = bcm63xx_udc_gadget_release;

if (!pd->use_fullspeed && !use_fullspeed)
udc->gadget.max_speed = USB_SPEED_HIGH;
Expand Down

0 comments on commit a995d9e

Please sign in to comment.