diff options
author | Felipe Balbi <balbi@ti.com> | 2013-02-26 04:10:03 -0500 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-03-18 05:17:22 -0400 |
commit | 1048d83d5bfcbf1c71391fc1aae57326e940149c (patch) | |
tree | 98b51286a0eefc41bcffa3b94ef111f24597046a /drivers/usb/dwc3/gadget.c | |
parent | 859d02c2d84da10536d1e0f1cebfa9105023f8e6 (diff) |
usb: dwc3: gadget: remove unnecessary initializations
udc-core now sets dma-related and parent fields
for us, we don't need to do it ourselves.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc3/gadget.c')
-rw-r--r-- | drivers/usb/dwc3/gadget.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index 2686bf26ccaf..322fb0bf6fce 100644 --- a/drivers/usb/dwc3/gadget.c +++ b/drivers/usb/dwc3/gadget.c | |||
@@ -2569,13 +2569,7 @@ int dwc3_gadget_init(struct dwc3 *dwc) | |||
2569 | dwc->gadget.ops = &dwc3_gadget_ops; | 2569 | dwc->gadget.ops = &dwc3_gadget_ops; |
2570 | dwc->gadget.max_speed = USB_SPEED_SUPER; | 2570 | dwc->gadget.max_speed = USB_SPEED_SUPER; |
2571 | dwc->gadget.speed = USB_SPEED_UNKNOWN; | 2571 | dwc->gadget.speed = USB_SPEED_UNKNOWN; |
2572 | dwc->gadget.dev.parent = dwc->dev; | ||
2573 | dwc->gadget.sg_supported = true; | 2572 | dwc->gadget.sg_supported = true; |
2574 | |||
2575 | dma_set_coherent_mask(&dwc->gadget.dev, dwc->dev->coherent_dma_mask); | ||
2576 | |||
2577 | dwc->gadget.dev.dma_parms = dwc->dev->dma_parms; | ||
2578 | dwc->gadget.dev.dma_mask = dwc->dev->dma_mask; | ||
2579 | dwc->gadget.dev.release = dwc3_gadget_release; | 2573 | dwc->gadget.dev.release = dwc3_gadget_release; |
2580 | dwc->gadget.name = "dwc3-gadget"; | 2574 | dwc->gadget.name = "dwc3-gadget"; |
2581 | 2575 | ||