From: Stefan Roese Date: Wed, 21 Feb 2007 12:44:34 +0000 (+0100) Subject: [PATCH] Fix problem in systemace driver (ace_writew instead of ace_write) X-Git-Tag: v1.3.0-rc1~159 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=da04995c7dc6772013a9a0dc5c767f190c402478;p=u-boot [PATCH] Fix problem in systemace driver (ace_writew instead of ace_write) Signed-off-by: Stefan Roese --- diff --git a/drivers/systemace.c b/drivers/systemace.c index 3bd2ea999c..1d1be12520 100644 --- a/drivers/systemace.c +++ b/drivers/systemace.c @@ -57,13 +57,13 @@ #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))