diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2020-02-14 16:40:18 +0900 |
---|---|---|
committer | Peng Fan <peng.fan@nxp.com> | 2020-02-19 21:27:30 +0800 |
commit | 950c5968672a22a65790534234d1106bd1303652 (patch) | |
tree | dcdcf7cf9c5f247f17ce4fabd18ce85e238dacb9 /drivers/usb/gadget/udc/udc-core.c | |
parent | c22c0dbd7d3bb7ce47779b757d567d2e7746744b (diff) |
dma-mapping: fix the prototype of dma_unmap_single()
dma_unmap_single() takes the dma address, not virtual address.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'drivers/usb/gadget/udc/udc-core.c')
-rw-r--r-- | drivers/usb/gadget/udc/udc-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/udc/udc-core.c b/drivers/usb/gadget/udc/udc-core.c index a33ab5c95d..528874507b 100644 --- a/drivers/usb/gadget/udc/udc-core.c +++ b/drivers/usb/gadget/udc/udc-core.c @@ -67,7 +67,7 @@ void usb_gadget_unmap_request(struct usb_gadget *gadget, if (req->length == 0) return; - dma_unmap_single((void *)(uintptr_t)req->dma, req->length, + dma_unmap_single(req->dma, req->length, is_in ? DMA_TO_DEVICE : DMA_FROM_DEVICE); } EXPORT_SYMBOL_GPL(usb_gadget_unmap_request); |