summaryrefslogtreecommitdiff
path: root/arch/parisc/include/asm/io.h
diff options
context:
space:
mode:
authorKyle McMartin <kyle@mcmartin.ca>2008-12-21 03:39:04 +0300
committerKyle McMartin <kyle@mcmartin.ca>2009-01-05 21:15:25 +0300
commit0ca5506da6795ebc700fd41cef2a7785613fbe28 (patch)
treea1f5c33c26a134f72cae51c89c0be349bc71b593 /arch/parisc/include/asm/io.h
parente0e7ed4811ce32d48ca8ee9fd136357d093243a9 (diff)
downloadlinux-0ca5506da6795ebc700fd41cef2a7785613fbe28.tar.xz
parisc: use leX_to_cpu in place of __fswabX
Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
Diffstat (limited to 'arch/parisc/include/asm/io.h')
-rw-r--r--arch/parisc/include/asm/io.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/parisc/include/asm/io.h b/arch/parisc/include/asm/io.h
index b92efb307e2e..d3031d1f9d03 100644
--- a/arch/parisc/include/asm/io.h
+++ b/arch/parisc/include/asm/io.h
@@ -176,9 +176,9 @@ static inline void __raw_writeq(unsigned long long b, volatile void __iomem *add
/* readb can never be const, so use __fswab instead of le*_to_cpu */
#define readb(addr) __raw_readb(addr)
-#define readw(addr) __fswab16(__raw_readw(addr))
-#define readl(addr) __fswab32(__raw_readl(addr))
-#define readq(addr) __fswab64(__raw_readq(addr))
+#define readw(addr) le16_to_cpu(__raw_readw(addr))
+#define readl(addr) le32_to_cpu(__raw_readl(addr))
+#define readq(addr) le64_to_cpu(__raw_readq(addr))
#define writeb(b, addr) __raw_writeb(b, addr)
#define writew(b, addr) __raw_writew(cpu_to_le16(b), addr)
#define writel(b, addr) __raw_writel(cpu_to_le32(b), addr)