diff options
author | Pali Rohár | 2022-09-09 17:32:40 +0200 |
---|---|---|
committer | Tom Rini | 2022-09-23 15:12:42 -0400 |
commit | 049704f808d5e643668a33a76e55f925d4c1b36a (patch) | |
tree | 8c0b37e909cd7d94bb0f9e0b6d6588cc63652948 /arch/riscv/cpu/fu740 | |
parent | 777aaaa706bcfe08c284aed06886db7d482af3f8 (diff) |
board_f: Fix types for board_get_usable_ram_top()
Commit 37dc958947ed ("global_data.h: Change ram_top type to phys_addr_t")
changed type of ram_top member from ulong to phys_addr_t but did not
changed types in board_get_usable_ram_top() function which returns value
for ram_top.
So change ulong to phys_addr_t type also in board_get_usable_ram_top()
signature and implementations.
Fixes: 37dc958947ed ("global_data.h: Change ram_top type to phys_addr_t")
Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/riscv/cpu/fu740')
-rw-r--r-- | arch/riscv/cpu/fu740/dram.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/riscv/cpu/fu740/dram.c b/arch/riscv/cpu/fu740/dram.c index 1dc77efeca5..d6d4a41d25e 100644 --- a/arch/riscv/cpu/fu740/dram.c +++ b/arch/riscv/cpu/fu740/dram.c @@ -20,7 +20,7 @@ int dram_init_banksize(void) return fdtdec_setup_memory_banksize(); } -ulong board_get_usable_ram_top(ulong total_size) +phys_size_t board_get_usable_ram_top(phys_size_t total_size) { #ifdef CONFIG_64BIT /* |