diff options
| author | Samuel Holland <samuel.holland@sifive.com> | 2024-07-30 21:58:55 -0700 |
|---|---|---|
| committer | Anup Patel <anup@brainfault.org> | 2024-08-24 13:02:58 +0530 |
| commit | fa6dfce017eed32cbae2581bc285bafd52929d42 (patch) | |
| tree | f8e1432ddaeb28e5e94b078cc941351460922a2e /platform | |
| parent | 6e5db7b09c6c25be59900a3470923727a4e14033 (diff) | |
| download | opensbi-fa6dfce017eed32cbae2581bc285bafd52929d42.tar.gz opensbi-fa6dfce017eed32cbae2581bc285bafd52929d42.tar.bz2 opensbi-fa6dfce017eed32cbae2581bc285bafd52929d42.zip | |
lib: utils/reset: Pass the FDT to fdt_reset_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>
Diffstat (limited to 'platform')
| -rw-r--r-- | platform/generic/platform.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/generic/platform.c b/platform/generic/platform.c index 6f9fb4db..2850d55d 100644 --- a/platform/generic/platform.c +++ b/platform/generic/platform.c @@ -225,7 +225,7 @@ static int generic_early_init(bool cold_boot) int rc; if (cold_boot) { - fdt_reset_init(); + fdt_reset_init(fdt); if (semihosting_enabled()) rc = semihosting_init(); |
