]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - arch/arm/include/asm/memory.h
[ARM] remove a common set of __virt_to_bus definitions
[mv-sheeva.git] / arch / arm / include / asm / memory.h
index 7238b3b506436f1c326afc6f28e1f49eeea79e86..0202a7c20e629fb7be94f58b9705e5268db6554e 100644 (file)
@@ -178,6 +178,11 @@ static inline void *phys_to_virt(unsigned long x)
  * memory.  Use of these is *deprecated* (and that doesn't mean
  * use the __ prefixed forms instead.)  See dma-mapping.h.
  */
+#ifndef __virt_to_bus
+#define __virt_to_bus  __virt_to_phys
+#define __bus_to_virt  __phys_to_virt
+#endif
+
 static inline __deprecated unsigned long virt_to_bus(void *x)
 {
        return __virt_to_bus((unsigned long)x);