Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ivtv: devel

[PATCH 18/62] media: remove the second argument of k[un]map_atomic()

 

 

ivtv devel RSS feed   Index | Next | Previous | View Threaded


amwang at redhat

Nov 26, 2011, 9:26 PM

Post #1 of 2 (730 views)
Permalink
[PATCH 18/62] media: remove the second argument of k[un]map_atomic()

Signed-off-by: Cong Wang <amwang [at] redhat>
---
drivers/media/video/ivtv/ivtv-udma.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/media/video/ivtv/ivtv-udma.c b/drivers/media/video/ivtv/ivtv-udma.c
index 69cc816..7338cb2 100644
--- a/drivers/media/video/ivtv/ivtv-udma.c
+++ b/drivers/media/video/ivtv/ivtv-udma.c
@@ -57,9 +57,9 @@ int ivtv_udma_fill_sg_list (struct ivtv_user_dma *dma, struct ivtv_dma_page_info
if (dma->bouncemap[map_offset] == NULL)
return -1;
local_irq_save(flags);
- src = kmap_atomic(dma->map[map_offset], KM_BOUNCE_READ) + offset;
+ src = kmap_atomic(dma->map[map_offset]) + offset;
memcpy(page_address(dma->bouncemap[map_offset]) + offset, src, len);
- kunmap_atomic(src, KM_BOUNCE_READ);
+ kunmap_atomic(src);
local_irq_restore(flags);
sg_set_page(&dma->SGlist[map_offset], dma->bouncemap[map_offset], len, offset);
}
--
1.7.4.4


_______________________________________________
ivtv-devel mailing list
ivtv-devel [at] ivtvdriver
http://ivtvdriver.org/mailman/listinfo/ivtv-devel


awalls at md

Nov 27, 2011, 3:10 PM

Post #2 of 2 (692 views)
Permalink
Re: [PATCH 18/62] media: remove the second argument of k[un]map_atomic() [In reply to]

On Sun, 2011-11-27 at 13:26 +0800, Cong Wang wrote:
> Signed-off-by: Cong Wang <amwang [at] redhat>

Acked-by: Andy Walls <awalls [at] md>

Regards,
Andy

> ---
> drivers/media/video/ivtv/ivtv-udma.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/media/video/ivtv/ivtv-udma.c b/drivers/media/video/ivtv/ivtv-udma.c
> index 69cc816..7338cb2 100644
> --- a/drivers/media/video/ivtv/ivtv-udma.c
> +++ b/drivers/media/video/ivtv/ivtv-udma.c
> @@ -57,9 +57,9 @@ int ivtv_udma_fill_sg_list (struct ivtv_user_dma *dma, struct ivtv_dma_page_info
> if (dma->bouncemap[map_offset] == NULL)
> return -1;
> local_irq_save(flags);
> - src = kmap_atomic(dma->map[map_offset], KM_BOUNCE_READ) + offset;
> + src = kmap_atomic(dma->map[map_offset]) + offset;
> memcpy(page_address(dma->bouncemap[map_offset]) + offset, src, len);
> - kunmap_atomic(src, KM_BOUNCE_READ);
> + kunmap_atomic(src);
> local_irq_restore(flags);
> sg_set_page(&dma->SGlist[map_offset], dma->bouncemap[map_offset], len, offset);
> }



_______________________________________________
ivtv-devel mailing list
ivtv-devel [at] ivtvdriver
http://ivtvdriver.org/mailman/listinfo/ivtv-devel

ivtv devel RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.