diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2010-01-24 21:07:19 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-03-02 17:54:46 -0500 |
commit | 5b520259ab6d661b8d5eb39dd17cc5e4e4553c62 (patch) | |
tree | 8b618d51397b77709f6900a8401025da79c41c93 /drivers/usb/gadget/s3c-hsotg.c | |
parent | ab3bbfa1af64a978ffff45861a1b694313a03537 (diff) |
USB: s3c-hsotg: replace deprecated dma_sync_single()
This replaces deprecated dma_sync_single() with dma_sync_single_for_cpu().
There is no functional change because dma_sync_single() simply calls
dma_sync_single_for_cpu():
static inline void __deprecated dma_sync_single(struct device *dev,
dma_addr_t addr, size_t size,
enum dma_data_direction dir)
{
dma_sync_single_for_cpu(dev, addr, size, dir);
}
This fixes the following compile warnings:
drivers/usb/gadget/s3c-hsotg.c: In function 's3c_hsotg_unmap_dma':
drivers/usb/gadget/s3c-hsotg.c:376: warning: 'dma_sync_single' is deprecated (declared at /home/fujita/git/linux-2.6/include/linux/dma-mapping.h:109)
drivers/usb/gadget/s3c-hsotg.c: In function 's3c_hsotg_map_dma':
drivers/usb/gadget/s3c-hsotg.c:758: warning: 'dma_sync_single' is deprecated (declared at /home/fujita/git/linux-2.6/include/linux/dma-mapping.h:109)
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Acked-by: Ben Dooks <ben@simtec.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/gadget/s3c-hsotg.c')
-rw-r--r-- | drivers/usb/gadget/s3c-hsotg.c | 4 |
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 | ||