forked from Mirrors/opensbi
lib: utils/serial: Pass the FDT to fdt_serial_init()
Indicate that this function does not modify the FDT blob, and deduplicate the call to fdt_get_address(). Signed-off-by: Samuel Holland <samuel.holland@sifive.com> Reviewed-by: Andrew Jones <ajones@ventanamicro.com> Reviewed-by: Anup Patel <anup@brainfault.org>
This commit is contained in:

committed by
Anup Patel

parent
fa6dfce017
commit
c36801841e
@@ -230,7 +230,7 @@ static int generic_early_init(bool cold_boot)
|
||||
if (semihosting_enabled())
|
||||
rc = semihosting_init();
|
||||
else
|
||||
rc = fdt_serial_init();
|
||||
rc = fdt_serial_init(fdt);
|
||||
if (rc)
|
||||
return rc;
|
||||
}
|
||||
|
Reference in New Issue
Block a user