summaryrefslogtreecommitdiff
path: root/common/spl
diff options
context:
space:
mode:
authorGong Qianyu <Qianyu.Gong@freescale.com>2015-07-30 14:07:12 +0800
committerTom Rini <trini@konsulko.com>2015-08-12 20:47:56 -0400
commit7ef4c45c6e78f3775894053e65e93bdac1e77e63 (patch)
tree1e86e8eb2955aa2d6e540cd047b9ee5cf609fafe /common/spl
parente86c95305912c77bacdae683a88edb20012cc271 (diff)
downloadu-boot-imx-7ef4c45c6e78f3775894053e65e93bdac1e77e63.zip
u-boot-imx-7ef4c45c6e78f3775894053e65e93bdac1e77e63.tar.gz
u-boot-imx-7ef4c45c6e78f3775894053e65e93bdac1e77e63.tar.bz2
spl: Fix compile warning for arm64
Make the cast explicit for "warning: cast to pointer from integer of different size". Signed-off-by: Gong Qianyu <Qianyu.Gong@freescale.com>
Diffstat (limited to 'common/spl')
-rw-r--r--common/spl/spl_mmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/spl/spl_mmc.c b/common/spl/spl_mmc.c
index 494f683..ce58c58 100644
--- a/common/spl/spl_mmc.c
+++ b/common/spl/spl_mmc.c
@@ -44,7 +44,7 @@ static int mmc_load_image_raw_sector(struct mmc *mmc, unsigned long sector)
/* Read the header too to avoid extra memcpy */
count = mmc->block_dev.block_read(0, sector, image_size_sectors,
- (void *)spl_image.load_addr);
+ (void *)(ulong)spl_image.load_addr);
debug("read %x sectors to %x\n", image_size_sectors,
spl_image.load_addr);