diff options
author | Wolfgang Denk <wd@pollux.denx.de> | 2007-02-27 14:26:04 +0100 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2007-02-27 14:26:04 +0100 |
commit | 743571145b37182757d4e688a77860b36ee77573 (patch) | |
tree | 3e2006c9f3a953532bb6a97d896390f03e58bd03 /drivers | |
parent | 638dd1458bbdc2a55d4b9e25c5c4e1f838a5dc72 (diff) | |
download | u-boot-imx-743571145b37182757d4e688a77860b36ee77573.zip u-boot-imx-743571145b37182757d4e688a77860b36ee77573.tar.gz u-boot-imx-743571145b37182757d4e688a77860b36ee77573.tar.bz2 |
Minor code cleanup.
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/systemace.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/systemace.c b/drivers/systemace.c index 634aa9b..3848d9c 100644 --- a/drivers/systemace.c +++ b/drivers/systemace.c @@ -56,12 +56,12 @@ #if (CFG_SYSTEMACE_WIDTH == 8) #if !defined(__BIG_ENDIAN) #define ace_readw(off) ((readb(CFG_SYSTEMACE_BASE+off)<<8) | \ - (readb(CFG_SYSTEMACE_BASE+off+1))) + (readb(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)) + (readb(CFG_SYSTEMACE_BASE+off+1)<<8)) #define ace_writew(val, off) {writeb(val, CFG_SYSTEMACE_BASE+off); \ writeb(val>>8, CFG_SYSTEMACE_BASE+off+1);} #endif @@ -73,7 +73,7 @@ /* */ static unsigned long systemace_read(int dev, unsigned long start, - unsigned long blkcnt, void *buffer); + unsigned long blkcnt, void *buffer); static block_dev_desc_t systemace_dev = { 0 }; @@ -137,7 +137,7 @@ block_dev_desc_t *systemace_get_dev(int dev) * number of blocks read. A zero return indicates an error. */ static unsigned long systemace_read(int dev, unsigned long start, - unsigned long blkcnt, void *buffer) + unsigned long blkcnt, void *buffer) { int retry; unsigned blk_countdown; |