media: remove the second argument of k[un]map_atomic()
authorCong Wang <amwang@redhat.com>
Fri, 25 Nov 2011 15:14:21 +0000 (23:14 +0800)
committerCong Wang <xiyou.wangcong@gmail.com>
Tue, 20 Mar 2012 13:48:18 +0000 (21:48 +0800)
Acked-by: Andy Walls <awalls@md.metrocast.net>
Signed-off-by: Cong Wang <amwang@redhat.com>
drivers/media/video/ivtv/ivtv-udma.c

index 69cc8166b20becc3a59dfbcd0955eecf53032cd7..7338cb2d0a38d674b026a802c2012c0e668341a5 100644 (file)
@@ -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);
                }