arm: rockchip: Explicitly cast gd->ram_top in dram_init_banksize()
authorBin Meng <bin.meng@windriver.com>
Sun, 31 Jan 2021 12:35:58 +0000 (20:35 +0800)
committerSimon Glass <sjg@chromium.org>
Wed, 3 Feb 2021 10:38:41 +0000 (03:38 -0700)
commit65f354cd8df614e1262fe05691543b1947e5091c
treeb2521ba5b989be9aca11c3f0249af53571d7f43a
parent85c714d8dcd56f63c2c0ae1b0f6a7e4a96c918a4
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>
arch/arm/mach-rockchip/sdram.c