]> git.sur5r.net Git - u-boot/commit
cmd_flash.c: fix fix compile error for boards with DataFlash
authorWolfgang Denk <wd@denx.de>
Sun, 19 Jul 2009 17:32:37 +0000 (19:32 +0200)
committerWolfgang Denk <wd@denx.de>
Sun, 19 Jul 2009 17:36:14 +0000 (19:36 +0200)
commit1a4664b53aaf23687b52d64b94be06a9aa260b86
tree95a91a5ca4014c21d8367844c6dd1e62fab2a28c
parent341245a28830d3261c41b09d958eeea7bb93587a
cmd_flash.c: fix fix compile error for boards with DataFlash

Commit 5669ed45 ("cmd_flash.c: fix warning: unused variable
'addr_first'/'addr_last'") changed the #ifdef logic areound the
declaration of these variables and missed a combination of settings
of HAS_DATAFLASH with SYS_NO_FLASH; this patch fixes this.

Also spotted by Alessandro Rubini <rubini@gnudd.com>

Signed-off-by: Wolfgang Denk <wd@denx.de>
common/cmd_flash.c