microblaze: Synchronize __pa __va macros
authorMichal Simek <monstr@monstr.eu>
Mon, 19 Dec 2011 10:10:10 +0000 (11:10 +0100)
committerMichal Simek <monstr@monstr.eu>
Thu, 5 Jan 2012 07:21:59 +0000 (08:21 +0100)
noMMU and MMU system use the same macros - synchronize them.

Signed-off-by: Michal Simek <monstr@monstr.eu>
arch/microblaze/include/asm/page.h

index ed9d0f6..a25e6b5 100644 (file)
@@ -174,15 +174,8 @@ extern int page_is_ram(unsigned long pfn);
 
 #define        virt_addr_valid(vaddr)  (pfn_valid(virt_to_pfn(vaddr)))
 
-
-#  ifndef CONFIG_MMU
-#  define __pa(vaddr)  ((unsigned long) (vaddr))
-#  define __va(paddr)  ((void *) (paddr))
-#  else /* CONFIG_MMU */
-#  define __pa(x)      __virt_to_phys((unsigned long)(x))
-#  define __va(x)      ((void *)__phys_to_virt((unsigned long)(x)))
-#  endif /* CONFIG_MMU */
-
+# define __pa(x)       __virt_to_phys((unsigned long)(x))
+# define __va(x)       ((void *)__phys_to_virt((unsigned long)(x)))
 
 /* Convert between virtual and physical address for MMU. */
 /* Handle MicroBlaze processor with virtual memory. */