]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - arch/arm/include/asm/memory.h
Revert "[ARM] unconditionally define __virt_to_phys and __phys_to_virt"
[mv-sheeva.git] / arch / arm / include / asm / memory.h
index cefedf062138dc579b2eb21ec154bd73afe1f02a..bc2ff8b281335d8d021586318f6fd7f7b63aaffe 100644 (file)
  * private definitions which should NOT be used outside memory.h
  * files.  Use virt_to_phys/phys_to_virt/__pa/__va instead.
  */
+#ifndef __virt_to_phys
 #define __virt_to_phys(x)      ((x) - PAGE_OFFSET + PHYS_OFFSET)
 #define __phys_to_virt(x)      ((x) - PHYS_OFFSET + PAGE_OFFSET)
+#endif
 
 /*
  * Convert a physical address to a Page Frame Number and back