summaryrefslogtreecommitdiffstats
path: root/include/asm-mips
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2001-02-10 00:43:15 +0000
committerRalf Baechle <ralf@linux-mips.org>2001-02-10 00:43:15 +0000
commit28d5df5fa2b4eaec0fca87f0b66de3c4f8f63522 (patch)
treeb43b168a075c7d13646022bef687021cf88fa28b /include/asm-mips
parentfa1984824312eb3e00173faa9017b01100b19f64 (diff)
Don't swap I/O space access for little endian systems.
Diffstat (limited to 'include/asm-mips')
-rw-r--r--include/asm-mips/io.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-mips/io.h b/include/asm-mips/io.h
index b10fa8ba7..1a89c2cf0 100644
--- a/include/asm-mips/io.h
+++ b/include/asm-mips/io.h
@@ -24,7 +24,7 @@
* Sane hardware offers swapping of I/O space accesses in hardware; less
* sane hardware forces software to fiddle with this ...
*/
-#ifdef CONFIG_SWAP_IO_SPACE
+#if defined(CONFIG_SWAP_IO_SPACE) && defined(__MIPSEB__)
#define __ioswab8(x) (x)
#define __ioswab16(x) swab16(x)