2002-01-25 02:45:19

by Frank Davis

[permalink] [raw]
Subject: [PATCH] 2.5.3-pre5: drivers/ieee1394/video1394.c

Hello all,
This patch below updates video1394.c with the updated remap_page_range()
function. Please review for inclusion. It's against 2.5.3-pre5
Regards,
Frank

--- drivers/ieee1394/video1394.c.old Thu Jan 24 20:42:11 2002
+++ drivers/ieee1394/video1394.c Thu Jan 24 21:07:04 2002
@@ -844,7 +844,7 @@
reg_write(ohci, OHCI1394_IsoXmitIntMaskSet, 1<<d->ctx);
}

-static int do_iso_mmap(struct ti_ohci *ohci, struct dma_iso_ctx *d,
+static int do_iso_mmap(struct vm_area_struct *vma, struct ti_ohci *ohci, struct dma_iso_ctx *d,
const char *adr, unsigned long size)
{
unsigned long start=(unsigned long) adr;
@@ -865,7 +865,7 @@
pos=(unsigned long) d->buf;
while (size > 0) {
page = kvirt_to_pa(pos);
- if (remap_page_range(start, page, PAGE_SIZE, PAGE_SHARED))
+ if (remap_page_range(vma, start, page, PAGE_SIZE, PAGE_SHARED))
return -EAGAIN;
start+=PAGE_SIZE;
pos+=PAGE_SIZE;