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 --- include/sbi_utils/reset/fdt_reset.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/sbi_utils/reset/fdt_reset.h b/include/sbi_utils/reset/fdt_reset.h index 80179873..f126fd33 100644 --- a/include/sbi_utils/reset/fdt_reset.h +++ b/include/sbi_utils/reset/fdt_reset.h @@ -29,7 +29,7 @@ int fdt_reset_driver_init(const void *fdt, struct fdt_reset *drv); * * This function shall be invoked in final init. */ -void fdt_reset_init(void); +void fdt_reset_init(const void *fdt); #else @@ -37,7 +37,7 @@ static inline int fdt_reset_driver_init(const void *fdt, struct fdt_reset *drv) { return 0; } -static inline void fdt_reset_init(void) { } +static inline void fdt_reset_init(const void *fdt) { } #endif -- cgit v1.3.1