]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
binman: Call helper function binman_set_rom_offset() to fill offset
authorMichal Simek <michal.simek@xilinx.com>
Wed, 26 Aug 2020 13:13:14 +0000 (15:13 +0200)
committerSimon Glass <sjg@chromium.org>
Thu, 5 Nov 2020 16:11:31 +0000 (09:11 -0700)
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>
lib/binman.c

index e71c1b9e9920c9687df70c960a46b8b0834888f4..d395b1cf70b2ac187e0015e83c1533e9d7141c95 100644 (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;
 }