diff options
author | Bin Meng <bin.meng@windriver.com> | 2021-01-31 15:35:58 +0300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2021-02-03 13:38:41 +0300 |
commit | 65f354cd8df614e1262fe05691543b1947e5091c (patch) | |
tree | b2521ba5b989be9aca11c3f0249af53571d7f43a /arch/arm/mach-rockchip | |
parent | 85c714d8dcd56f63c2c0ae1b0f6a7e4a96c918a4 (diff) | |
download | u-boot-65f354cd8df614e1262fe05691543b1947e5091c.tar.xz |
arm: rockchip: Explicitly cast gd->ram_top in dram_init_banksize()
The min() macro used in dram_init_banksize() requires two elements
to compare have the same type. Let's explicitly cast gd->ram_top.
Signed-off-by: Bin Meng <bin.meng@windriver.com>
Diffstat (limited to 'arch/arm/mach-rockchip')
-rw-r--r-- | arch/arm/mach-rockchip/sdram.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-rockchip/sdram.c b/arch/arm/mach-rockchip/sdram.c index 4c637b7767..c3d5fed7db 100644 --- a/arch/arm/mach-rockchip/sdram.c +++ b/arch/arm/mach-rockchip/sdram.c @@ -37,7 +37,7 @@ struct tos_parameter_t { int dram_init_banksize(void) { size_t top = min((unsigned long)(gd->ram_size + CONFIG_SYS_SDRAM_BASE), - gd->ram_top); + (unsigned long)(gd->ram_top)); #ifdef CONFIG_ARM64 /* Reserve 0x200000 for ATF bl31 */ |