[U-Boot] [PATCH 35/56] board/etx094/flash.c: Fix flash initialization

Wolfgang Denk wd at denx.de
Mon Nov 7 22:14:31 CET 2011


Dear Wolfgang Denk,

In message <1320458160-23136-36-git-send-email-wd at denx.de> you wrote:
> The ETX094 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:68:13: warning: array subscript is above array bounds
> [-Warray-bounds]
> flash.c:70:13: warning: array subscript is above array bounds
> [-Warray-bounds]
> flash.c:72:13: warning: array subscript is above array bounds
> [-Warray-bounds]
> flash.c:128:13: warning: array subscript is above array bounds
> [-Warray-bounds]
> flash.c:129:13: warning: array subscript is above array bounds
> [-Warray-bounds]
> flash.c:133:12: warning: array subscript is above array bounds
> [-Warray-bounds]
> 
> Signed-off-by: Wolfgang Denk <wd at denx.de>
> ---
>  board/etx094/flash.c |   54 ++-----------------------------------------------
>  1 files changed, 3 insertions(+), 51 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Quote from the Boss after overriding the decision of a task force  he
created  to  find  a  solution:  "I'm  sorry  if  I ever gave you the
impression your input would have any effect on my  decision  for  the
outcome of this project!"


More information about the U-Boot mailing list