From: Arnd Bergmann Date: Fri, 1 May 2009 21:44:51 +0000 (+0000) Subject: microblaze: add a dummy pgprot_noncached X-Git-Tag: v2.6.31-rc1~360^2~47 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=0c60155e14eb00fa13836a710a2d2efb63d8861c;p=karo-tx-linux.git microblaze: add a dummy pgprot_noncached Some device drivers call this, so add a macro that pretends to do this. Since there is no MMU support, it won't actually result in an uncached mapping, though. Signed-off-by: Arnd Bergmann Signed-off-by: Michal Simek --- diff --git a/arch/microblaze/include/asm/pgtable.h b/arch/microblaze/include/asm/pgtable.h index 4df31e46568e..254fd4ba733b 100644 --- a/arch/microblaze/include/asm/pgtable.h +++ b/arch/microblaze/include/asm/pgtable.h @@ -27,6 +27,8 @@ #define PAGE_READONLY __pgprot(0) /* these mean nothing to non MMU */ #define PAGE_KERNEL __pgprot(0) /* these mean nothing to non MMU */ +#define pgprot_noncached(x) (x) + #define __swp_type(x) (0) #define __swp_offset(x) (0) #define __swp_entry(typ, off) ((swp_entry_t) { ((typ) | ((off) << 7)) })