ICU862: Fix incorrect flash handling
authorWolfgang Denk <wd@denx.de>
Fri, 4 Nov 2011 15:55:33 +0000 (15:55 +0000)
committerWolfgang Denk <wd@denx.de>
Mon, 7 Nov 2011 21:13:05 +0000 (22:13 +0100)
commit13039eb1faccb4e601f68b2a18df998f9b8bc5ea
tree58e8ddacde93466e24d2c304a450846df2805d98
parentbae65019d754007054d702b9e86429fa19470b1e
ICU862: Fix incorrect flash handling

There is only one bank of NOR flash memory on ICU862 boards.
Remove code that attempts to deal with a second bank.

This also fixes build warnings:
flash.c: In function 'flash_init':
flash.c:120:12: warning: array subscript is above array bounds
[-Warray-bounds]
flash.c:121:12: warning: array subscript is above array bounds
[-Warray-bounds]
flash.c:124:12: warning: array subscript is above array bounds
[-Warray-bounds]

Signed-off-by: Wolfgang Denk <wd@denx.de>
board/icu862/flash.c