[PATCH] Fix problem in systemace driver (ace_writew instead of ace_write)
authorStefan Roese <sr@denx.de>
Wed, 21 Feb 2007 12:44:34 +0000 (13:44 +0100)
committerStefan Roese <sr@denx.de>
Wed, 21 Feb 2007 12:44:34 +0000 (13:44 +0100)
Signed-off-by: Stefan Roese <sr@denx.de>
drivers/systemace.c

index 3bd2ea999c469f976c1a1476226514ee90309066..1d1be12520295f0094594eab200935e25e0a9524 100644 (file)
 #if !defined(__BIG_ENDIAN)
 #define ace_readw(off) ((readb(CFG_SYSTEMACE_BASE+off)<<8) | \
                         (readb(CFG_SYSTEMACE_BASE+off+1)))
-#define ace_write(val, off) {writeb(val>>8, CFG_SYSTEMACE_BASE+off); \
-                             writeb(val, CFG_SYSTEMACE_BASE+off+1);}
+#define ace_writew(val, off) {writeb(val>>8, CFG_SYSTEMACE_BASE+off); \
+                             writeb(val, CFG_SYSTEMACE_BASE+off+1);}
 #else
 #define ace_readw(off) ((readb(CFG_SYSTEMACE_BASE+off)) | \
                         (readb(CFG_SYSTEMACE_BASE+off+1)<<8))
-#define ace_write(val, off) {writeb(val, CFG_SYSTEMACE_BASE+off); \
-                             writeb(val>>8, CFG_SYSTEMACE_BASE+off+1);}
+#define ace_writew(val, off) {writeb(val, CFG_SYSTEMACE_BASE+off); \
+                             writeb(val>>8, CFG_SYSTEMACE_BASE+off+1);}
 #endif
 #else
 #define ace_readw(off) (in16(CFG_SYSTEMACE_BASE+off))