diff options
author | Stefan Roese <sr@denx.de> | 2006-10-07 11:33:03 +0200 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2006-10-07 11:33:03 +0200 |
commit | 77d5034847d328753b80c46b83f960a14a26f40e (patch) | |
tree | c8f1dbc93507e935e07a6371ccaf3efbdeec06bc | |
parent | f3443867e90d2979a7dd1c65b0d537777e1f9850 (diff) | |
download | u-boot-imx-77d5034847d328753b80c46b83f960a14a26f40e.zip u-boot-imx-77d5034847d328753b80c46b83f960a14a26f40e.tar.gz u-boot-imx-77d5034847d328753b80c46b83f960a14a26f40e.tar.bz2 |
Remove compile warnings in fpga code
Patch by Stefan Roese, 07 Oct 2006
-rw-r--r-- | CHANGELOG | 3 | ||||
-rw-r--r-- | common/cmd_fpga.c | 4 |
2 files changed, 5 insertions, 2 deletions
@@ -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 df859bd..3444091 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; |