[PATCH] 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 ---
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; }

On Wed, 26 Aug 2020 at 07:13, Michal Simek michal.simek@xilinx.com wrote:
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
lib/binman.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Simon Glass sjg@chromium.org

On Wed, 26 Aug 2020 at 07:13, Michal Simek michal.simek@xilinx.com wrote:
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
lib/binman.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Simon Glass sjg@chromium.org
Applied to u-boot-dm, thanks!

On Wed, 26 Aug 2020 at 07:13, Michal Simek michal.simek@xilinx.com wrote:
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
lib/binman.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Simon Glass sjg@chromium.org
Applied to u-boot-dm, thanks! Applied to u-boot-dm, thanks!
participants (2)
-
Michal Simek
-
Simon Glass