]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
board/rbc823/flash.c: Fix flash initalization
authorWolfgang Denk <wd@denx.de>
Fri, 4 Nov 2011 15:55:47 +0000 (15:55 +0000)
committerWolfgang Denk <wd@denx.de>
Mon, 7 Nov 2011 21:15:31 +0000 (22:15 +0100)
commite0ead84895dc439c42f83fa18ebbe88865e8383b
treeddfa7e3f95743d9270ae5e915c5965654512bfc0
parent6915840ffb4dde0835eb567f4e9e617f679dc16b
board/rbc823/flash.c: Fix flash initalization

The RBC823 has only one NOR flash bank.  Remove all code trying to
deal with a second bank.  This also fixes a number of GCC 4.6 build
warnings:
flash.c: In function 'flash_init':
flash.c:62:12: warning: array subscript is above array bounds
[-Warray-bounds]
flash.c:63:12: warning: array subscript is above array bounds
[-Warray-bounds]
flash.c:66:12: warning: array subscript is above array bounds
[-Warray-bounds]

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