Commit bbbc024a authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] mips: fix 2.6 fb setup

From: Ralf Baechle <ralf@linux-mips.org>
parent 4b35ee7f
...@@ -1178,8 +1178,7 @@ fb_mmap(struct file *file, struct vm_area_struct * vma) ...@@ -1178,8 +1178,7 @@ fb_mmap(struct file *file, struct vm_area_struct * vma)
if (boot_cpu_data.x86 > 3) if (boot_cpu_data.x86 > 3)
pgprot_val(vma->vm_page_prot) |= _PAGE_PCD; pgprot_val(vma->vm_page_prot) |= _PAGE_PCD;
#elif defined(__mips__) #elif defined(__mips__)
pgprot_val(vma->vm_page_prot) &= ~_CACHE_MASK; vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
pgprot_val(vma->vm_page_prot) |= _CACHE_UNCACHED;
#elif defined(__hppa__) #elif defined(__hppa__)
pgprot_val(vma->vm_page_prot) |= _PAGE_NO_CACHE; pgprot_val(vma->vm_page_prot) |= _PAGE_NO_CACHE;
#elif defined(__ia64__) || defined(__arm__) || defined(__sh__) #elif defined(__ia64__) || defined(__arm__) || defined(__sh__)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment