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 --- lib/utils/timer/fdt_timer_plmt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/utils/timer/fdt_timer_plmt.c') diff --git a/lib/utils/timer/fdt_timer_plmt.c b/lib/utils/timer/fdt_timer_plmt.c index 459a1190..1e146689 100644 --- a/lib/utils/timer/fdt_timer_plmt.c +++ b/lib/utils/timer/fdt_timer_plmt.c @@ -43,7 +43,7 @@ static const struct fdt_match timer_plmt_match[] = { {}, }; -struct fdt_timer fdt_timer_plmt = { +const struct fdt_driver fdt_timer_plmt = { .match_table = timer_plmt_match, - .cold_init = fdt_plmt_cold_timer_init, + .init = fdt_plmt_cold_timer_init, }; -- cgit v1.3.1