aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/dummy_hcd.c
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2013-02-26 08:15:26 -0500
committerFelipe Balbi <balbi@ti.com>2013-03-18 05:17:47 -0400
commitf7162e9e1cead8510e371f8273902539102670ac (patch)
treeca9ed25f08e98ac30598fbbefefed3388a0f0f3c /drivers/usb/gadget/dummy_hcd.c
parenta995d9e2a50b30907814f178eeaa1f632a66c0cb (diff)
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,
935 935
936/* The gadget structure is stored inside the hcd structure and will be 936/* The gadget structure is stored inside the hcd structure and will be
937 * released along with it. */ 937 * released along with it. */
938static void dummy_gadget_release(struct device *dev)
939{
940 return;
941}
942
943static void init_dummy_udc_hw(struct dummy *dum) 938static void init_dummy_udc_hw(struct dummy *dum)
944{ 939{
945 int i; 940 int i;
@@ -983,7 +978,6 @@ static int dummy_udc_probe(struct platform_device *pdev)
983 dum->gadget.max_speed = USB_SPEED_SUPER; 978 dum->gadget.max_speed = USB_SPEED_SUPER;
984 979
985 dum->gadget.dev.parent = &pdev->dev; 980 dum->gadget.dev.parent = &pdev->dev;
986 dum->gadget.dev.release = dummy_gadget_release;
987 init_dummy_udc_hw(dum); 981 init_dummy_udc_hw(dum);
988 982
989 rc = usb_add_gadget_udc(&pdev->dev, &dum->gadget); 983 rc = usb_add_gadget_udc(&pdev->dev, &dum->gadget);