This commit was manufactured by cvs2svn to create tag
[linux-2.6.git] / sound / oss / maestro.c
index 84fe23d..66456db 100644 (file)
@@ -2520,9 +2520,7 @@ static int ess_mmap(struct file *file, struct vm_area_struct *vma)
        if (size > (PAGE_SIZE << db->buforder))
                goto out;
        ret = -EAGAIN;
-       if (remap_pfn_range(vma, vma->vm_start,
-                       virt_to_phys(db->rawbuf) >> PAGE_SHIFT,
-                       size, vma->vm_page_prot))
+       if (remap_page_range(vma, vma->vm_start, virt_to_phys(db->rawbuf), size, vma->vm_page_prot))
                goto out;
        db->mapped = 1;
        ret = 0;
@@ -2955,7 +2953,7 @@ allocate_buffers(struct ess_state *s)
 
        }
 
-       /* now mark the pages as reserved; otherwise remap_pfn_range doesn't do what we want */
+       /* now mark the pages as reserved; otherwise remap_page_range doesn't do what we want */
        pend = virt_to_page(rawbuf + (PAGE_SIZE << order) - 1);
        for (page = virt_to_page(rawbuf); page <= pend; page++)
                SetPageReserved(page);