From fa6dfce017eed32cbae2581bc285bafd52929d42 Mon Sep 17 00:00:00 2001 From: Samuel Holland Date: Tue, 30 Jul 2024 21:58:55 -0700 Subject: 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 Reviewed-by: Andrew Jones Reviewed-by: Anup Patel --- platform/generic/platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'platform') 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(); -- cgit v1.3.1