]> git.sur5r.net Git - u-boot/commit
mtd: cfi - if defined, use MAX_FLASH_BANKS_DETECT for static declarations
authorKim Phillips <kim.phillips@freescale.com>
Tue, 14 Jul 2009 21:00:24 +0000 (16:00 -0500)
committerStefan Roese <sr@denx.de>
Thu, 16 Jul 2009 13:27:45 +0000 (15:27 +0200)
commit9578718c1b085cac73017d834001bc5cb0b2f73f
tree82a984e3b5b97edf856d4d6d4c5eccd409732420
parent7d4450a9773673052fcd7fdf0a4a88c089126ac1
mtd: cfi - if defined, use MAX_FLASH_BANKS_DETECT for static declarations

a.k.a cfi_mtd.c does as cfi_flash.c does.  This also prevents
the TQM834x build from doing a:

cfi_mtd.c:36: error: variably modified 'cfi_mtd_info' at file scope
cfi_mtd.c:37: error: variably modified 'cfi_mtd_names' at file scope

using gcc 4.4.

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Signed-off-by: Stefan Roese <sr@denx.de>
drivers/mtd/cfi_mtd.c