#
# Made by http://www.mn-logistik.de/unsupported/pxa250/patcher
#

--- linux/drivers/video/fbmem.c~buffered-fbmem	2003-09-16 00:48:18.000000000 +0200
+++ linux/drivers/video/fbmem.c	2003-09-19 00:38:00.000000000 +0200
@@ -650,7 +650,11 @@
 	pgprot_val(vma->vm_page_prot) &= ~_CACHE_MASK;
 	pgprot_val(vma->vm_page_prot) |= _CACHE_UNCACHED;
 #elif defined(__arm__)
+#ifdef CONFIG_PXA
+	vma->vm_page_prot = pgprot_noncached_buffered(vma->vm_page_prot);
+#else
 	vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
+#endif
 #ifdef CONFIG_POODLE_CONSISTENT_ALLOC
 	vma->vm_page_prot = __pgprot(pgprot_val(vma->vm_page_prot) | L_PTE_CACHEABLE);
 #endif