]> git.sur5r.net Git - u-boot/commitdiff
Remove compile warnings in fpga code
authorStefan Roese <sr@denx.de>
Sat, 7 Oct 2006 09:33:03 +0000 (11:33 +0200)
committerStefan Roese <sr@denx.de>
Sat, 7 Oct 2006 09:33:03 +0000 (11:33 +0200)
Patch by Stefan Roese, 07 Oct 2006

CHANGELOG
common/cmd_fpga.c

index 4af02002ab38e65b37151c002a90d24e004f1b40..7ed5e668fb1a0ae36b5364afe65cdeb9313b1f44 100644 (file)
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -2,6 +2,9 @@
 Changes since U-Boot 1.1.4:
 ======================================================================
 
+* Remove compile warnings in fpga code
+  Patch by Stefan Roese, 07 Oct 2006
+
 * Add CONFIG_BOARD_RESET to configure board specific reset function
   Patch by Stefan Roese, 07 Oct 2006
 
index df859bd98786bf2cd1f0403b81d57f794cd433ac..34440918582b56573533f0b9eb2e6a56a295a449 100644 (file)
@@ -263,9 +263,9 @@ int do_fpga (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
                                puts ("Bad Magic Number\n");
                                return 1;
                        }
-                       data = (char *)(fpga_data + sizeof(image_header_t));
+                       data = ((ulong)fpga_data + sizeof(image_header_t));
                        data_size  = ntohl(hdr->ih_size);
-                       rc = fpga_load (dev, data, data_size);
+                       rc = fpga_load (dev, (void *)data, data_size);
                }
                break;