OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f72d4f
)
xtensa: use physical addresses for bus addresses
author
Chris Zankel
<chris@zankel.net>
Wed, 24 Oct 2012 03:25:37 +0000
(20:25 -0700)
committer
Chris 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
patch
|
blob
|
history
diff --git
a/arch/xtensa/include/asm/io.h
b/arch/xtensa/include/asm/io.h
index
e6be5b9
..
700c2e6
100644
(file)
--- a/
arch/xtensa/include/asm/io.h
+++ b/
arch/xtensa/include/asm/io.h
@@
-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 */
/*