forked from Mirrors/opensbi
platform: Drop timer warm init and exit hooks
Now that driver lifecycle is managed from within the SBI timer core, platforms need only to initialize the driver once during cold init. Remove the remaining platform hooks that are no longer used. Signed-off-by: Samuel Holland <samuel.holland@sifive.com> Reviewed-by: Anup Patel <anup@brainfault.org>
This commit is contained in:

committed by
Anup Patel

parent
4500828743
commit
99b01ab610
@@ -17,18 +17,13 @@
|
||||
struct fdt_timer {
|
||||
const struct fdt_match *match_table;
|
||||
int (*cold_init)(const void *fdt, int nodeoff, const struct fdt_match *match);
|
||||
int (*warm_init)(void);
|
||||
void (*exit)(void);
|
||||
};
|
||||
|
||||
void fdt_timer_exit(void);
|
||||
|
||||
int fdt_timer_init(bool cold_boot);
|
||||
int fdt_timer_init(void);
|
||||
|
||||
#else
|
||||
|
||||
static inline void fdt_timer_exit(void) { }
|
||||
static inline int fdt_timer_init(bool cold_boot) { return 0; }
|
||||
static inline int fdt_timer_init(void) { return 0; }
|
||||
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user