aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/controlfb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/controlfb.c')
-rw-r--r--drivers/video/controlfb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/controlfb.c b/drivers/video/controlfb.c
index b0be7eac32d8..49fcbe8f18ac 100644
--- a/drivers/video/controlfb.c
+++ b/drivers/video/controlfb.c
@@ -298,10 +298,10 @@ static int controlfb_mmap(struct fb_info *info,
298 return -EINVAL; 298 return -EINVAL;
299 start = info->fix.mmio_start; 299 start = info->fix.mmio_start;
300 len = PAGE_ALIGN((start & ~PAGE_MASK)+info->fix.mmio_len); 300 len = PAGE_ALIGN((start & ~PAGE_MASK)+info->fix.mmio_len);
301 pgprot_val(vma->vm_page_prot) |= _PAGE_NO_CACHE|_PAGE_GUARDED; 301 vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
302 } else { 302 } else {
303 /* framebuffer */ 303 /* framebuffer */
304 pgprot_val(vma->vm_page_prot) |= _PAGE_WRITETHRU; 304 vma->vm_page_prot = pgprot_cached_wthru(vma->vm_page_prot);
305 } 305 }
306 start &= PAGE_MASK; 306 start &= PAGE_MASK;
307 if ((vma->vm_end - vma->vm_start + off) > len) 307 if ((vma->vm_end - vma->vm_start + off) > len)