From a387a8dff05bd433c686b77dab13bab0221710e5 Mon Sep 17 00:00:00 2001 From: Samuel Holland Date: Mon, 11 Nov 2024 14:02:55 -0800 Subject: lib: utils/timer: Use fdt_driver for initialization The timer driver subsystem does not need any extra data, so it can use `struct fdt_driver` directly. The generic fdt_timer_init() performs a best-effort initialization of all matching DT nodes. Signed-off-by: Samuel Holland Reviewed-by: Anup Patel --- include/sbi_utils/timer/fdt_timer.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'include/sbi_utils/timer') diff --git a/include/sbi_utils/timer/fdt_timer.h b/include/sbi_utils/timer/fdt_timer.h index 8f0469da..7bd2faf0 100644 --- a/include/sbi_utils/timer/fdt_timer.h +++ b/include/sbi_utils/timer/fdt_timer.h @@ -11,14 +11,10 @@ #define __FDT_TIMER_H__ #include +#include #ifdef CONFIG_FDT_TIMER -struct fdt_timer { - const struct fdt_match *match_table; - int (*cold_init)(const void *fdt, int nodeoff, const struct fdt_match *match); -}; - int fdt_timer_init(void); #else -- cgit v1.2.3