[PATCH] binman: Call helper function binman_set_rom_offset() to fill offset

Michal Simek michal.simek at xilinx.com
Wed Aug 26 15:13:14 CEST 2020


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 at xilinx.com>
---

 lib/binman.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/binman.c b/lib/binman.c
index 7a8ad62c4a8c..082ac5679273 100644
--- a/lib/binman.c
+++ b/lib/binman.c
@@ -91,7 +91,7 @@ int binman_init(void)
 	binman->image = ofnode_path("/binman");
 	if (!ofnode_valid(binman->image))
 		return log_msg_ret("binman node", -EINVAL);
-	binman->rom_offset = ROM_OFFSET_NONE;
+	binman_set_rom_offset(ROM_OFFSET_NONE);
 
 	return 0;
 }
-- 
2.28.0



More information about the U-Boot mailing list