aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/s3c-hsotg.c
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2010-03-08 15:21:04 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2010-03-08 15:21:04 -0500
commit988addf82e4c03739375279de73929580a2d4a6a (patch)
tree989ae1cd4e264bbad80c65f04480486246e7b9f3 /drivers/usb/gadget/s3c-hsotg.c
parent004c1c7096659d352b83047a7593e91d8a30e3c5 (diff)
parent25cf84cf377c0aae5dbcf937ea89bc7893db5176 (diff)
Merge branch 'origin' into devel-stable
Conflicts: arch/arm/mach-mx2/devices.c arch/arm/mach-mx2/devices.h sound/soc/pxa/pxa-ssp.c
Diffstat (limited to 'drivers/usb/gadget/s3c-hsotg.c')
-rw-r--r--drivers/usb/gadget/s3c-hsotg.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/usb/gadget/s3c-hsotg.c b/drivers/usb/gadget/s3c-hsotg.c
index 9941fc613413..f742c8e7397c 100644
--- a/drivers/usb/gadget/s3c-hsotg.c
+++ b/drivers/usb/gadget/s3c-hsotg.c
@@ -317,7 +317,8 @@ static void s3c_hsotg_init_fifo(struct s3c_hsotg *hsotg)
317 * 317 *
318 * Allocate a new USB request structure appropriate for the specified endpoint 318 * Allocate a new USB request structure appropriate for the specified endpoint
319 */ 319 */
320struct usb_request *s3c_hsotg_ep_alloc_request(struct usb_ep *ep, gfp_t flags) 320static struct usb_request *s3c_hsotg_ep_alloc_request(struct usb_ep *ep,
321 gfp_t flags)
321{ 322{
322 struct s3c_hsotg_req *req; 323 struct s3c_hsotg_req *req;
323 324
@@ -373,7 +374,7 @@ static void s3c_hsotg_unmap_dma(struct s3c_hsotg *hsotg,
373 req->dma = DMA_ADDR_INVALID; 374 req->dma = DMA_ADDR_INVALID;
374 hs_req->mapped = 0; 375 hs_req->mapped = 0;
375 } else { 376 } else {
376 dma_sync_single(hsotg->dev, req->dma, req->length, dir); 377 dma_sync_single_for_cpu(hsotg->dev, req->dma, req->length, dir);
377 } 378 }
378} 379}
379 380
@@ -755,7 +756,7 @@ static int s3c_hsotg_map_dma(struct s3c_hsotg *hsotg,
755 hs_req->mapped = 1; 756 hs_req->mapped = 1;
756 req->dma = dma; 757 req->dma = dma;
757 } else { 758 } else {
758 dma_sync_single(hsotg->dev, req->dma, req->length, dir); 759 dma_sync_single_for_cpu(hsotg->dev, req->dma, req->length, dir);
759 hs_req->mapped = 0; 760 hs_req->mapped = 0;
760 } 761 }
761 762
@@ -1460,7 +1461,7 @@ static u32 s3c_hsotg_read_frameno(struct s3c_hsotg *hsotg)
1460 * as the actual data should be sent to the memory directly and we turn 1461 * as the actual data should be sent to the memory directly and we turn
1461 * on the completion interrupts to get notifications of transfer completion. 1462 * on the completion interrupts to get notifications of transfer completion.
1462 */ 1463 */
1463void s3c_hsotg_handle_rx(struct s3c_hsotg *hsotg) 1464static void s3c_hsotg_handle_rx(struct s3c_hsotg *hsotg)
1464{ 1465{
1465 u32 grxstsr = readl(hsotg->regs + S3C_GRXSTSP); 1466 u32 grxstsr = readl(hsotg->regs + S3C_GRXSTSP);
1466 u32 epnum, status, size; 1467 u32 epnum, status, size;
@@ -3094,7 +3095,7 @@ static void s3c_hsotg_gate(struct platform_device *pdev, bool on)
3094 local_irq_restore(flags); 3095 local_irq_restore(flags);
3095} 3096}
3096 3097
3097struct s3c_hsotg_plat s3c_hsotg_default_pdata; 3098static struct s3c_hsotg_plat s3c_hsotg_default_pdata;
3098 3099
3099static int __devinit s3c_hsotg_probe(struct platform_device *pdev) 3100static int __devinit s3c_hsotg_probe(struct platform_device *pdev)
3100{ 3101{