From: Wolfgang Denk Date: Sun, 9 Mar 2008 09:09:53 +0000 (+0100) Subject: esd/common/fpga.c: fix 'assignment of read-only location' error X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=8d4f4a838d7dc7cf4de17e3e9a67e2f222b6a1c8;p=u-boot.git esd/common/fpga.c: fix 'assignment of read-only location' error Signed-off-by: Wolfgang Denk --- diff --git a/board/esd/common/fpga.c b/board/esd/common/fpga.c index aab5509bcb..dc9266256a 100644 --- a/board/esd/common/fpga.c +++ b/board/esd/common/fpga.c @@ -96,10 +96,10 @@ static int fpga_boot(const unsigned char *fpgadata, int size) { int i,index,len; int count; + unsigned char b; #ifdef CFG_FPGA_SPARTAN2 int j; #else - unsigned char b; int bit; #endif @@ -196,9 +196,10 @@ static int fpga_boot(const unsigned char *fpgadata, int size) */ for (i=index; i