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 <samuel.holland@sifive.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
Samuel Holland
2024-11-11 14:02:55 -08:00
committed by Anup Patel
parent a524f0a507
commit a387a8dff0
5 changed files with 10 additions and 45 deletions

View File

@@ -162,7 +162,7 @@ static const struct fdt_match timer_mtimer_match[] = {
{ },
};
struct fdt_timer fdt_timer_mtimer = {
const struct fdt_driver fdt_timer_mtimer = {
.match_table = timer_mtimer_match,
.cold_init = timer_mtimer_cold_init,
.init = timer_mtimer_cold_init,
};