• Wolfgang Denk's avatar
    ICU862: Fix incorrect flash handling · 13039eb1
    Wolfgang Denk authored
    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: default avatarWolfgang Denk <wd@denx.de>
    13039eb1
flash.c 13.8 KB