From: Michal Simek Date: Wed, 26 Aug 2020 13:13:14 +0000 (+0200) Subject: binman: Call helper function binman_set_rom_offset() to fill offset X-Git-Tag: v2021.01-rc2~5^2~35 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6723b4c6ca7b;p=pandora-u-boot.git 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 Reviewed-by: Simon Glass Reviewed-by: Simon Glass --- diff --git a/lib/binman.c b/lib/binman.c index e71c1b9e992..d395b1cf70b 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; }