From: Stefan Roese Date: Sat, 7 Oct 2006 09:33:03 +0000 (+0200) Subject: Remove compile warnings in fpga code X-Git-Tag: U-Boot-1_2_0~26^2~9 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=77d5034847d328753b80c46b83f960a14a26f40e;p=u-boot Remove compile warnings in fpga code Patch by Stefan Roese, 07 Oct 2006 --- diff --git a/CHANGELOG b/CHANGELOG index 4af02002ab..7ed5e668fb 100644 --- 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 diff --git a/common/cmd_fpga.c b/common/cmd_fpga.c index df859bd987..3444091858 100644 --- a/common/cmd_fpga.c +++ b/common/cmd_fpga.c @@ -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;