summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorSamuel Holland <[email protected]>2024-07-30 21:58:55 -0700
committerAnup Patel <[email protected]>2024-08-24 13:02:58 +0530
commitfa6dfce017eed32cbae2581bc285bafd52929d42 (patch)
treef8e1432ddaeb28e5e94b078cc941351460922a2e /platform
parent6e5db7b09c6c25be59900a3470923727a4e14033 (diff)
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 <[email protected]> Reviewed-by: Andrew Jones <[email protected]> Reviewed-by: Anup Patel <[email protected]>
Diffstat (limited to 'platform')
-rw-r--r--platform/generic/platform.c2
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();