summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/bcm63xx_udc.c
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2013-02-26 14:15:26 +0100
committerFelipe Balbi <balbi@ti.com>2013-03-18 10:17:46 +0100
commita995d9e2a50b30907814f178eeaa1f632a66c0cb (patch)
tree1bce61eb396dcedab1c6f8d9ebaff73d9468adc5 /drivers/usb/gadget/bcm63xx_udc.c
parentusb: gadget: amd5536udc: don't assign gadget.dev.release directly (diff)
downloadlinux-a995d9e2a50b30907814f178eeaa1f632a66c0cb.tar.xz
linux-a995d9e2a50b30907814f178eeaa1f632a66c0cb.zip
usb: gadget: bcm63xx_udc: don't assign gadget.dev.release directly
udc-core provides a better way to handle release methods, let's use it. Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/bcm63xx_udc.c')
-rw-r--r--drivers/usb/gadget/bcm63xx_udc.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/usb/gadget/bcm63xx_udc.c b/drivers/usb/gadget/bcm63xx_udc.c
index 904d4746922d..6e6518264c42 100644
--- a/drivers/usb/gadget/bcm63xx_udc.c
+++ b/drivers/usb/gadget/bcm63xx_udc.c
@@ -2304,17 +2304,6 @@ static void bcm63xx_udc_cleanup_debugfs(struct bcm63xx_udc *udc)
***********************************************************************/
/**
- * 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.
*
@@ -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;