diff options
author | Simon Glass <sjg@chromium.org> | 2022-03-04 08:43:04 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-03-10 08:28:36 -0500 |
commit | 42fdcebf859f93139d58defd5abef44dedb9b17a (patch) | |
tree | 51cb886505b82fa87bd38ef898fcb153e0c2cd49 /common/event.c | |
parent | 5b896ed5856f768cdd55cdeb44c5f8f6b6a7a18a (diff) |
event: Convert misc_init_f() to use events
This hook can be implmented using events, for the three boards that
actually use it.
Add the event type and event handlers. Drop CONFIG_MISC_INIT_F since we
can just use CONFIG_EVENT to control this. Since sandbox always enables
CONFIG_EVENT, we can drop the defconfig lines there too.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common/event.c')
-rw-r--r-- | common/event.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/event.c b/common/event.c index 737d3ac9ea..4270809d49 100644 --- a/common/event.c +++ b/common/event.c @@ -30,6 +30,9 @@ const char *const type_name[] = { "dm_post_probe", "dm_pre_remove", "dm_post_remove", + + /* init hooks */ + "misc_init_f", }; _Static_assert(ARRAY_SIZE(type_name) == EVT_COUNT, "event type_name size"); |