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>
This commit is contained in:
Michal Simek 2020-08-26 15:13:14 +02:00 committed by Simon Glass
parent 0ae9bc3c42
commit 6723b4c6ca
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}