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

Frank Davis (fdavis@si.rr.com)
Thu, 24 Jan 2002 21:15:45 -0500 (EST)


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;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/