diff options
| author | Samuel Holland <[email protected]> | 2024-11-11 14:02:55 -0800 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2024-11-28 17:57:20 +0530 |
| commit | a387a8dff05bd433c686b77dab13bab0221710e5 (patch) | |
| tree | d4080dfa31081b45f3487971c0da46d66d424cb9 /lib/utils/timer/fdt_timer_plmt.c | |
| parent | a524f0a507de18f150ea33ac923117291c6d1d81 (diff) | |
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 <[email protected]>
Reviewed-by: Anup Patel <[email protected]>
Diffstat (limited to 'lib/utils/timer/fdt_timer_plmt.c')
| -rw-r--r-- | lib/utils/timer/fdt_timer_plmt.c | 4 |
1 files changed, 2 insertions, 2 deletions
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, }; |
