summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/cmd_fpga.c4
1 files changed, 2 insertions, 2 deletions
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;