aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/s3c-hsotg.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/gadget/s3c-hsotg.c')
-rw-r--r--drivers/usb/gadget/s3c-hsotg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/gadget/s3c-hsotg.c b/drivers/usb/gadget/s3c-hsotg.c
index 2a5ea06f89c8..7e5bf593d386 100644
--- a/drivers/usb/gadget/s3c-hsotg.c
+++ b/drivers/usb/gadget/s3c-hsotg.c
@@ -374,7 +374,7 @@ static void s3c_hsotg_unmap_dma(struct s3c_hsotg *hsotg,
374 req->dma = DMA_ADDR_INVALID; 374 req->dma = DMA_ADDR_INVALID;
375 hs_req->mapped = 0; 375 hs_req->mapped = 0;
376 } else { 376 } else {
377 dma_sync_single(hsotg->dev, req->dma, req->length, dir); 377 dma_sync_single_for_cpu(hsotg->dev, req->dma, req->length, dir);
378 } 378 }
379} 379}
380 380
@@ -756,7 +756,7 @@ static int s3c_hsotg_map_dma(struct s3c_hsotg *hsotg,
756 hs_req->mapped = 1; 756 hs_req->mapped = 1;
757 req->dma = dma; 757 req->dma = dma;
758 } else { 758 } else {
759 dma_sync_single(hsotg->dev, req->dma, req->length, dir); 759 dma_sync_single_for_cpu(hsotg->dev, req->dma, req->length, dir);
760 hs_req->mapped = 0; 760 hs_req->mapped = 0;
761 } 761 }
762 762