xtensa: use physical addresses for bus addresses
authorChris Zankel <chris@zankel.net>
Wed, 24 Oct 2012 03:25:37 +0000 (20:25 -0700)
committerChris Zankel <chris@zankel.net>
Thu, 25 Oct 2012 21:53:36 +0000 (14:53 -0700)
Define virt_to_bus and bus_to_virt as virt_to_phys, and phys_to_virt,
       respectively.

Signed-off-by: Chris Zankel <chris@zankel.net>
arch/xtensa/include/asm/io.h

index e6be5b9091c2a65509f721ed3e5f92bc7c6783bc..700c2e6f2d259d454f5f8f310b431d6b20ecbc1f 100644 (file)
@@ -62,6 +62,10 @@ static inline void __iomem *ioremap(unsigned long offset, unsigned long size)
 static inline void iounmap(volatile void __iomem *addr)
 {
 }
+
+#define virt_to_bus     virt_to_phys
+#define bus_to_virt     phys_to_virt
+
 #endif /* CONFIG_MMU */
 
 /*