Blackfin arch: add mmiowb() as some drivers expect
authorMike Frysinger <vapier.adi@gmail.com>
Tue, 18 Nov 2008 09:48:21 +0000 (17:48 +0800)
committerBryan Wu <cooloney@kernel.org>
Tue, 18 Nov 2008 09:48:21 +0000 (17:48 +0800)
Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
arch/blackfin/include/asm/io.h

index 7dc77a2..e7591ea 100644 (file)
@@ -108,6 +108,8 @@ static inline unsigned int readl(const volatile void __iomem *addr)
 #define iowrite16(val,X)               writew(val,X)
 #define iowrite32(val,X)               writel(val,X)
 
+#define mmiowb() wmb()
+
 #define IO_SPACE_LIMIT 0xffffffff
 
 /* Values for nocacheflag and cmode */