diff options
| author | Stefan Roese <sr@denx.de> | 2008-10-21 11:43:08 +0200 | 
|---|---|---|
| committer | Stefan Roese <sr@denx.de> | 2008-10-21 11:43:08 +0200 | 
| commit | f61f1e150c84f5b9347fca79a4bc5f2286c545d2 (patch) | |
| tree | ab90f076f18e56b2b3e8c9375b95917daa78c1d9 /common/cmd_jffs2.c | |
| parent | ec081c2c190148b374e86a795fb6b1c49caeb549 (diff) | |
| parent | f82642e33899766892499b163e60560fbbf87773 (diff) | |
| download | olio-uboot-2014.01-f61f1e150c84f5b9347fca79a4bc5f2286c545d2.tar.xz olio-uboot-2014.01-f61f1e150c84f5b9347fca79a4bc5f2286c545d2.zip  | |
Merge branch 'master' of /home/stefan/git/u-boot/u-boot
Diffstat (limited to 'common/cmd_jffs2.c')
| -rw-r--r-- | common/cmd_jffs2.c | 10 | 
1 files changed, 5 insertions, 5 deletions
diff --git a/common/cmd_jffs2.c b/common/cmd_jffs2.c index c6920c9a6..791a572cc 100644 --- a/common/cmd_jffs2.c +++ b/common/cmd_jffs2.c @@ -772,7 +772,7 @@ static int device_validate(u8 type, u8 num, u32 *size)  {  	if (type == MTD_DEV_TYPE_NOR) {  #if defined(CONFIG_CMD_FLASH) -		if (num < CFG_MAX_FLASH_BANKS) { +		if (num < CONFIG_SYS_MAX_FLASH_BANKS) {  			extern flash_info_t flash_info[];  			*size = flash_info[num].size; @@ -780,24 +780,24 @@ static int device_validate(u8 type, u8 num, u32 *size)  		}  		printf("no such FLASH device: %s%d (valid range 0 ... %d\n", -				MTD_DEV_TYPE(type), num, CFG_MAX_FLASH_BANKS - 1); +				MTD_DEV_TYPE(type), num, CONFIG_SYS_MAX_FLASH_BANKS - 1);  #else  		printf("support for FLASH devices not present\n");  #endif  	} else if (type == MTD_DEV_TYPE_NAND) {  #if defined(CONFIG_JFFS2_NAND) && defined(CONFIG_CMD_NAND) -		if (num < CFG_MAX_NAND_DEVICE) { +		if (num < CONFIG_SYS_MAX_NAND_DEVICE) {  #ifndef CONFIG_NAND_LEGACY  			*size = nand_info[num].size;  #else -			extern struct nand_chip nand_dev_desc[CFG_MAX_NAND_DEVICE]; +			extern struct nand_chip nand_dev_desc[CONFIG_SYS_MAX_NAND_DEVICE];  			*size = nand_dev_desc[num].totlen;  #endif  			return 0;  		}  		printf("no such NAND device: %s%d (valid range 0 ... %d)\n", -				MTD_DEV_TYPE(type), num, CFG_MAX_NAND_DEVICE - 1); +				MTD_DEV_TYPE(type), num, CONFIG_SYS_MAX_NAND_DEVICE - 1);  #else  		printf("support for NAND devices not present\n");  #endif  |