This commit was manufactured by cvs2svn to create tag
[linux-2.6.git] / sound / oss / au1000.c
index 9b2d8ed..c5d220e 100644 (file)
@@ -629,7 +629,7 @@ static int prog_dmabuf(struct au1000_state *s, struct dmabuf *db)
                        return -ENOMEM;
                db->buforder = order;
                /* now mark the pages as reserved;
-                  otherwise remap_pfn_range doesn't do what we want */
+                  otherwise remap_page_range doesn't do what we want */
                pend = virt_to_page(db->rawbuf +
                                    (PAGE_SIZE << db->buforder) - 1);
                for (page = virt_to_page(db->rawbuf); page <= pend; page++)
@@ -1338,8 +1338,7 @@ static int au1000_mmap(struct file *file, struct vm_area_struct *vma)
                ret = -EINVAL;
                goto out;
        }
-       if (remap_pfn_range(vma->vm_start,
-                            virt_to_phys(db->rawbuf) >> PAGE_SHIFT,
+       if (remap_page_range(vma->vm_start, virt_to_phys(db->rawbuf),
                             size, vma->vm_page_prot)) {
                ret = -EAGAIN;
                goto out;