mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
board_f: Fix types for board_get_usable_ram_top()
Commit37dc958947
("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:37dc958947
("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>
This commit is contained in:
parent
777aaaa706
commit
049704f808
35 changed files with 36 additions and 36 deletions
|
@ -335,7 +335,7 @@ static void set_fdt_addr(void)
|
|||
/*
|
||||
* Prevent relocation from stomping on a firmware provided FDT blob.
|
||||
*/
|
||||
unsigned long board_get_usable_ram_top(unsigned long total_size)
|
||||
phys_size_t board_get_usable_ram_top(phys_size_t total_size)
|
||||
{
|
||||
if ((gd->ram_top - fw_dtb_pointer) > SZ_64M)
|
||||
return gd->ram_top;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue