All of lore.kernel.org
 help / color / mirror / Atom feed
* parisc: fix io accessors for generic byteorder.h
@ 2008-12-08  4:43 Kyle McMartin
  2008-12-08  4:55 ` Harvey Harrison
  0 siblings, 1 reply; 4+ messages in thread
From: Kyle McMartin @ 2008-12-08  4:43 UTC (permalink / raw)
  To: linux-parisc; +Cc: Harvey Harrison

These were using __fswabX which is marooned in <linux/byteorder/swab.h>
instead we'll just use the __arch_swabX defines from <asm/byteorder.h>

Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
---
 arch/parisc/include/asm/io.h |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/arch/parisc/include/asm/io.h b/arch/parisc/include/asm/io.h
index 55ddb18..6943135 100644
--- a/arch/parisc/include/asm/io.h
+++ b/arch/parisc/include/asm/io.h
@@ -2,6 +2,7 @@
 #define _ASM_IO_H
 
 #include <linux/types.h>
+#include <asm/byteorder.h>
 #include <asm/pgtable.h>
 
 extern unsigned long parisc_vmerge_boundary;
@@ -180,11 +181,10 @@ static inline void __raw_writeq(unsigned long long b, volatile void __iomem *add
 	*(volatile unsigned long long __force *) addr = b;
 }
 
-/* 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) __arch_swab16(__raw_readw(addr))
+#define readl(addr) __arch_swab32(__raw_readl(addr))
+#define readq(addr) __arch_swab64(__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)
-- 
1.5.6.5


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-12-08  6:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-08  4:43 parisc: fix io accessors for generic byteorder.h Kyle McMartin
2008-12-08  4:55 ` Harvey Harrison
2008-12-08  4:58   ` Kyle McMartin
2008-12-08  6:09     ` Harvey Harrison

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.