aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/spl/spl_ram.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/common/spl/spl_ram.c b/common/spl/spl_ram.c
index 619b39a5374..5fcc3b1504b 100644
--- a/common/spl/spl_ram.c
+++ b/common/spl/spl_ram.c
@@ -63,9 +63,8 @@ static int spl_ram_load_image(struct spl_image_info *spl_image,
* No binman support or no information. For now, fix it
* to the address pointed to by U-Boot.
*/
- header = spl_get_load_buffer(-sizeof(*header),
- sizeof(*header));
-
+ u_boot_pos = (ulong)spl_get_load_buffer(-sizeof(*header),
+ sizeof(*header));
}
header = (struct image_header *)map_sysmem(u_boot_pos, 0);