diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2008-03-09 10:44:01 +0100 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-03-09 15:15:06 +0100 |
commit | db695b78515ddb88a2d4f3357c120345efbf59ec (patch) | |
tree | f3e4fc792d4f5e399234b6d42baac20c1537c0b2 /board | |
parent | 2b3e7e61d6a72f16aee93f870bc6af67f30758c4 (diff) | |
download | u-boot-imx-db695b78515ddb88a2d4f3357c120345efbf59ec.zip u-boot-imx-db695b78515ddb88a2d4f3357c120345efbf59ec.tar.gz u-boot-imx-db695b78515ddb88a2d4f3357c120345efbf59ec.tar.bz2 |
scb9328: Fix flash warning: type qualifiers ignored on function return type
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'board')
-rw-r--r-- | board/scb9328/flash.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/board/scb9328/flash.c b/board/scb9328/flash.c index 1b56f8c..304190c 100644 --- a/board/scb9328/flash.c +++ b/board/scb9328/flash.c @@ -44,6 +44,7 @@ #if ( SCB9328_FLASH_BUS_WIDTH == 1 ) # define FLASH_BUS vu_char +# define FLASH_BUS_RET u_char # if ( SCB9328_FLASH_INTERLEAVE == 1 ) # define FLASH_CMD( x ) x # else @@ -53,6 +54,7 @@ #elif ( SCB9328_FLASH_BUS_WIDTH == 2 ) # define FLASH_BUS vu_short +# define FLASH_BUS_RET u_short # if ( SCB9328_FLASH_INTERLEAVE == 1 ) # define FLASH_CMD( x ) x # elif ( SCB9328_FLASH_INTERLEAVE == 2 ) @@ -64,6 +66,7 @@ #elif ( SCB9328_FLASH_BUS_WIDTH == 4 ) # define FLASH_BUS vu_long +# define FLASH_BUS_RET u_long # if ( SCB9328_FLASH_INTERLEAVE == 1 ) # define FLASH_CMD( x ) x # elif ( SCB9328_FLASH_INTERLEAVE == 2 ) @@ -81,7 +84,7 @@ flash_info_t flash_info[CFG_MAX_FLASH_BANKS]; -static FLASH_BUS flash_status_reg (void) +static FLASH_BUS_RET flash_status_reg (void) { FLASH_BUS *addr = (FLASH_BUS *) 0; |