Re: [U-Boot] [PATCH] cmd_flash.c: fix compile error for boards with DataFlash

2009-07-19 Thread Wolfgang Denk
Dear Alessandro Rubini, In message <20090719163317.ga18...@mail.gnudd.com> you wrote: > From: Alessandro Rubini > > The local variables addr_first and addr_last are used if HAS_DATAFLASH > even if SYS_NO_FLASH (meaning no NOR flash). This adds the definitions > withing the brace where the names

[U-Boot] [PATCH] cmd_flash.c: fix compile error for boards with DataFlash

2009-07-19 Thread Alessandro Rubini
From: Alessandro Rubini The local variables addr_first and addr_last are used if HAS_DATAFLASH even if SYS_NO_FLASH (meaning no NOR flash). This adds the definitions withing the brace where the names are used, to avoid cluttering the initial ifdef. Signed-off-by: Alessandro Rubini --- 5 boards