u-boot-brain/drivers
Peter Tyser 2c51983b81 cfi_flash: Fix CONFIG_SYS_FLASH_AUTOPROTECT_LIST usage
Commit 6ee1416e81 (mtd, cfi: introduce
void flash_protect_default(void)) introduced a bug which resulted in
boards that define CONFIG_SYS_FLASH_AUTOPROTECT_LIST not compiling with
the the following errors and warning:
  ptyser@petert u-boot $ make -s xpedite520x
  Configuring for xpedite520x board...
  cfi_flash.c: In function 'flash_protect_default':
  cfi_flash.c:2118: error: 'i' undeclared (first use in this function)
  cfi_flash.c:2118: error: (Each undeclared identifier is reported only once
  cfi_flash.c:2118: error: for each function it appears in.)
  cfi_flash.c:2118: error: 'apl' undeclared (first use in this function)
  cfi_flash.c:2118: error: invalid application of 'sizeof' to incomplete type 'struct apl_s'
  cfi_flash.c: In function 'flash_init':
  cfi_flash.c:2137: warning: unused variable 'apl'

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Reported-by: Kumar Gala <galak@kernel.crashing.org>
Cc: Heiko Schocher <hs@denx.de>
2011-04-13 21:50:25 +02:00
..
bios_emulator Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
block MXC: removed warnings from IMX51 ATA driver 2011-02-02 00:54:43 +01:00
dma Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
fpga add Xilinx_abort_fn to Xilinx_Spartan3_Slave_Serial_fns 2010-11-30 21:59:21 +01:00
gpio mvmfp: add MFP configuration support for PANTHEON 2011-02-21 08:30:55 +01:00
hwmon Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
i2c I2C: mxc_i2c: address failure with mx35 processor 2011-02-02 00:54:43 +01:00
input Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
misc powerpc/8xxx: Fix LAW init to respect pre-initialized entries 2011-04-04 09:24:41 -05:00
mmc Merge branch 'master' of git://git.denx.de/u-boot-mpc85xx 2011-04-10 21:24:40 +02:00
mtd cfi_flash: Fix CONFIG_SYS_FLASH_AUTOPROTECT_LIST usage 2011-04-13 21:50:25 +02:00
net Fix misc spelling errors found by lintian 2011-04-12 22:58:31 +02:00
pci fsl_pci: Add support for FSL PCIe controllers v2.x 2011-04-04 09:24:41 -05:00
pcmcia Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
power ftpmu010: support faraday ftpmu010 driver 2011-01-25 22:18:57 +01:00
qe powerpc/85xx: Add P1021 specific QE and UEC support 2011-04-05 10:18:39 -05:00
rtc eNET: Add RTC support to eNET 2011-02-12 15:11:43 +11:00
serial serial: add pantheon soc support 2011-02-21 08:30:55 +01:00
spi Blackfin: BF50x: new processor port 2011-04-08 00:44:26 -04:00
twserial Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
usb Merge branch 'master' of git://git.denx.de/u-boot-mpc85xx 2011-04-05 12:24:20 +02:00
video video/mx3fb: fix clock divider 2010-12-17 21:24:02 +01:00
watchdog ftwdt010_wdt: move header to include/faraday and enhance 2011-04-12 22:58:33 +02:00