aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrygorii Strashko <grygorii.strashko@ti.com>2016-04-04 07:31:54 -0400
committerFelipe Balbi <felipe.balbi@linux.intel.com>2016-04-06 09:36:01 -0400
commit79171e9b90b133686a96912cd7b528655cc9a07a (patch)
tree1ef13e1e9a4477f586e78c7d983ae3fae9d36eb1
parent1ffb4d5cc78a3a99109ff0808ce6915de07a0588 (diff)
usb: gadget: udc-core: remove manual dma configuration
Since commit 7ace8fc8219e ("usb: gadget: udc: core: Fix argument of dma_map_single for IOMMU") it is not necessary to configure DMA for usb_gadget device manually, because all DMA operation are performed using parent/controller device. Cc: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
-rw-r--r--drivers/usb/gadget/udc/udc-core.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/usb/gadget/udc/udc-core.c b/drivers/usb/gadget/udc/udc-core.c
index 4151597e9d28..e4e70e11d0f6 100644
--- a/drivers/usb/gadget/udc/udc-core.c
+++ b/drivers/usb/gadget/udc/udc-core.c
@@ -371,12 +371,6 @@ int usb_add_gadget_udc_release(struct device *parent, struct usb_gadget *gadget,
371 INIT_WORK(&gadget->work, usb_gadget_state_work); 371 INIT_WORK(&gadget->work, usb_gadget_state_work);
372 gadget->dev.parent = parent; 372 gadget->dev.parent = parent;
373 373
374#ifdef CONFIG_HAS_DMA
375 dma_set_coherent_mask(&gadget->dev, parent->coherent_dma_mask);
376 gadget->dev.dma_parms = parent->dma_parms;
377 gadget->dev.dma_mask = parent->dma_mask;
378#endif
379
380 if (release) 374 if (release)
381 gadget->dev.release = release; 375 gadget->dev.release = release;
382 else 376 else