summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/dummy_hcd.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:47 +0100
commitf7162e9e1cead8510e371f8273902539102670ac (patch)
treeca9ed25f08e98ac30598fbbefefed3388a0f0f3c /drivers/usb/gadget/dummy_hcd.c
parentusb: gadget: bcm63xx_udc: don't assign gadget.dev.release directly (diff)
downloadlinux-f7162e9e1cead8510e371f8273902539102670ac.tar.xz
linux-f7162e9e1cead8510e371f8273902539102670ac.zip
usb: gadget: dummy_hcd: 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/dummy_hcd.c')
-rw-r--r--drivers/usb/gadget/dummy_hcd.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/usb/gadget/dummy_hcd.c b/drivers/usb/gadget/dummy_hcd.c
index 9d54c01cbf56..ce751555f6ba 100644
--- a/drivers/usb/gadget/dummy_hcd.c
+++ b/drivers/usb/gadget/dummy_hcd.c
@@ -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);