diff options
author | Christoph Hellwig <hch@lst.de> | 2019-02-01 09:47:55 +0100 |
---|---|---|
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2019-02-11 14:30:14 +0100 |
commit | 8c7ffa5ebd4e56ac0a7dcc70fa6da94171d8985d (patch) | |
tree | 8ed48a452f0ce4109ea82f404a5159f3b06b5c2f | |
parent | usb: gadget: Change Andrzej Pietrasiewicz's e-mail address (diff) | |
download | linux-8c7ffa5ebd4e56ac0a7dcc70fa6da94171d8985d.tar.xz linux-8c7ffa5ebd4e56ac0a7dcc70fa6da94171d8985d.zip |
fotg210-udc: remove a bogus dma_sync_single_for_device call
dma_map_single already transfers ownership to the device.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
-rw-r--r-- | drivers/usb/gadget/udc/fotg210-udc.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/usb/gadget/udc/fotg210-udc.c b/drivers/usb/gadget/udc/fotg210-udc.c index bc6abaea907d..fe9cf415f2f1 100644 --- a/drivers/usb/gadget/udc/fotg210-udc.c +++ b/drivers/usb/gadget/udc/fotg210-udc.c @@ -356,10 +356,6 @@ static void fotg210_start_dma(struct fotg210_ep *ep, return; } - dma_sync_single_for_device(NULL, d, length, - ep->dir_in ? DMA_TO_DEVICE : - DMA_FROM_DEVICE); - fotg210_enable_dma(ep, d, length); /* check if dma is done */ |