summaryrefslogtreecommitdiff
path: root/cmd/fpga.c
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2016-01-05 13:51:48 +0100
committerMichal Simek <michal.simek@xilinx.com>2016-01-27 15:55:54 +0100
commit455ad585eeac5e93fcca77e22afc9bbd2f4ccc3e (patch)
tree2f605ab197bd3b3f0711771ee56743c96b2f2617 /cmd/fpga.c
parentddbcf8f2c2d1be734c91948a0c1b676a5eb5087f (diff)
downloadu-boot-imx-455ad585eeac5e93fcca77e22afc9bbd2f4ccc3e.zip
u-boot-imx-455ad585eeac5e93fcca77e22afc9bbd2f4ccc3e.tar.gz
u-boot-imx-455ad585eeac5e93fcca77e22afc9bbd2f4ccc3e.tar.bz2
fpga: Fix compilation warnings
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'cmd/fpga.c')
-rw-r--r--cmd/fpga.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/cmd/fpga.c b/cmd/fpga.c
index 7f99aab..8956eb1 100644
--- a/cmd/fpga.c
+++ b/cmd/fpga.c
@@ -86,7 +86,7 @@ int do_fpga(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
debug("* fpga: cmdline image address = 0x%08lx\n",
(ulong)fpga_data);
}
- debug("%s: fpga_data = 0x%x\n", __func__, (uint)fpga_data);
+ debug("%s: fpga_data = 0x%lx\n", __func__, (ulong)fpga_data);
case 3: /* fpga <op> <dev | data addr> */
dev = (int)simple_strtoul(argv[2], NULL, 16);
@@ -107,13 +107,13 @@ int do_fpga(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
} else
#endif
{
- fpga_data = (void *)dev;
+ fpga_data = (void *)(uintptr_t)dev;
debug("* fpga: cmdline image addr = 0x%08lx\n",
(ulong)fpga_data);
}
- debug("%s: fpga_data = 0x%x\n",
- __func__, (uint)fpga_data);
+ debug("%s: fpga_data = 0x%lx\n",
+ __func__, (ulong)fpga_data);
dev = FPGA_INVALID_DEVICE; /* reset device num */
}