usb: gadget: udc: core: Fix argument of dma_map_single for IOMMU
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Mon, 13 Jul 2015 09:10:05 +0000 (18:10 +0900)
committerFelipe Balbi <balbi@ti.com>
Mon, 20 Jul 2015 17:57:46 +0000 (12:57 -0500)
commit7ace8fc8219e4cbbfd5b4790390d9a01a2541cdf
tree58e33564d7ef41e42bc8d9ea4c0fb49edb88d7ee
parent53e20f2eb161fbe9eea28b54dccc870cec94eca2
usb: gadget: udc: core: Fix argument of dma_map_single for IOMMU

The dma_map_single and dma_unmap_single should set "gadget->dev.parent"
instead of "&gadget->dev" in the first argument because the parent has
a udc controller's device pointer.
Otherwise, iommu functions are not called in ARM environment.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/udc/udc-core.c