Commit d2bca7ba authored by Ivan Kokshaysky's avatar Ivan Kokshaysky Committed by Linus Torvalds

[PATCH] Alpha: typos in io_trivial.h

This apparently explains some weird IO failures reported in last two months.
Only non-bwx (including generic) kernels were affected.
Acked-by: default avatarRichard Henderson <rth@twiddle.net>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 306950a3
...@@ -26,7 +26,7 @@ IO_CONCAT(__IO_PREFIX,iowrite8)(u8 b, void __iomem *a) ...@@ -26,7 +26,7 @@ IO_CONCAT(__IO_PREFIX,iowrite8)(u8 b, void __iomem *a)
__EXTERN_INLINE void __EXTERN_INLINE void
IO_CONCAT(__IO_PREFIX,iowrite16)(u16 b, void __iomem *a) IO_CONCAT(__IO_PREFIX,iowrite16)(u16 b, void __iomem *a)
{ {
__kernel_stb(b, *(volatile u16 __force *)a); __kernel_stw(b, *(volatile u16 __force *)a);
} }
#endif #endif
...@@ -66,7 +66,7 @@ IO_CONCAT(__IO_PREFIX,writeb)(u8 b, volatile void __iomem *a) ...@@ -66,7 +66,7 @@ IO_CONCAT(__IO_PREFIX,writeb)(u8 b, volatile void __iomem *a)
__EXTERN_INLINE void __EXTERN_INLINE void
IO_CONCAT(__IO_PREFIX,writew)(u16 b, volatile void __iomem *a) IO_CONCAT(__IO_PREFIX,writew)(u16 b, volatile void __iomem *a)
{ {
__kernel_stb(b, *(volatile u16 __force *)a); __kernel_stw(b, *(volatile u16 __force *)a);
} }
#elif IO_CONCAT(__IO_PREFIX,trivial_rw_bw) == 2 #elif IO_CONCAT(__IO_PREFIX,trivial_rw_bw) == 2
__EXTERN_INLINE u8 __EXTERN_INLINE u8
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment