summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2016-02-29 20:50:34 +0900
committerTom Rini <trini@konsulko.com>2016-03-15 21:30:20 -0400
commit70e6428d8cbaede09691f71f69c93e0f7899fe2e (patch)
treed7b978de399364ab8b79fd34ec6f3329e97730eb /common
parent3eb80d10c7715d427808908b259646f1df781264 (diff)
downloadu-boot-imx-70e6428d8cbaede09691f71f69c93e0f7899fe2e.zip
u-boot-imx-70e6428d8cbaede09691f71f69c93e0f7899fe2e.tar.gz
u-boot-imx-70e6428d8cbaede09691f71f69c93e0f7899fe2e.tar.bz2
spl_nor: fix warning when compiled for 64bit target
Fix "warning: cast to pointer from integer of different size". Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'common')
-rw-r--r--common/spl/spl_nor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/spl/spl_nor.c b/common/spl/spl_nor.c
index e08afe2..d0bd0b0 100644
--- a/common/spl/spl_nor.c
+++ b/common/spl/spl_nor.c
@@ -59,7 +59,7 @@ int spl_nor_load_image(void)
spl_parse_image_header(
(const struct image_header *)CONFIG_SYS_UBOOT_BASE);
- memcpy((void *)spl_image.load_addr,
+ memcpy((void *)(unsigned long)spl_image.load_addr,
(void *)(CONFIG_SYS_UBOOT_BASE + sizeof(struct image_header)),
spl_image.size);