Merge ../linux-2.6 by hand
[linux-2.6.git] / drivers / video / fbmem.c
index 9073be4221a81d1e186c53b76db515ba5dcb4578..e2667ddab3f11033fd440cf10ed57365741ae35e 100644 (file)
@@ -918,7 +918,7 @@ fb_mmap(struct file *file, struct vm_area_struct * vma)
        }
 #endif
 #elif defined(__powerpc__)
-       vma->vm_page_prot = phys_mem_access_prot(file, off,
+       vma->vm_page_prot = phys_mem_access_prot(file, off >> PAGE_SHIFT,
                                                 vma->vm_end - vma->vm_start,
                                                 vma->vm_page_prot);
 #elif defined(__alpha__)