aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2020-08-26 15:13:14 +0200
committerSimon Glass <sjg@chromium.org>2020-11-05 09:11:31 -0700
commit6723b4c6ca7b6ef1435ee5529a53e14df3e1b099 (patch)
treedf18bfd0658579e54060c0227226f72d42a8a13c
parent0ae9bc3c42f1e47ac4954bc3b3112067e15bb6f3 (diff)
downloadu-boot-6723b4c6ca7b6ef1435ee5529a53e14df3e1b099.zip
u-boot-6723b4c6ca7b6ef1435ee5529a53e14df3e1b099.tar.gz
u-boot-6723b4c6ca7b6ef1435ee5529a53e14df3e1b099.tar.bz2
binman: Call helper function binman_set_rom_offset() to fill offset
There is prepared function for filing rom_offset. That's why use it instead of copying content of it. Signed-off-by: Michal Simek <michal.simek@xilinx.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org>
-rw-r--r--lib/binman.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/binman.c b/lib/binman.c
index e71c1b9..d395b1c 100644
--- a/lib/binman.c
+++ b/lib/binman.c
@@ -103,7 +103,7 @@ int binman_init(void)
return log_msg_ret("first image", -ENOENT);
binman->image = node;
}
- binman->rom_offset = ROM_OFFSET_NONE;
-
+ binman_set_rom_offset(ROM_OFFSET_NONE);
+\
return 0;
}