Skip to content
Snippets Groups Projects
Commit 8f41b878 authored by Thomas Chou's avatar Thomas Chou
Browse files

timer: start a new timer after relocation


Start a new timer after relocation, just in case the
timer has been used in per-relocation.

Signed-off-by: default avatarThomas Chou <thomas@wytron.com.tw>
Acked-by: default avatarSimon Glass <sjg@chromium.org>
parent c8a7ba9e
No related branches found
No related tags found
No related merge requests found
...@@ -290,6 +290,9 @@ static int initr_dm(void) ...@@ -290,6 +290,9 @@ static int initr_dm(void)
/* Save the pre-reloc driver model and start a new one */ /* Save the pre-reloc driver model and start a new one */
gd->dm_root_f = gd->dm_root; gd->dm_root_f = gd->dm_root;
gd->dm_root = NULL; gd->dm_root = NULL;
#ifdef CONFIG_TIMER
gd->timer = NULL;
#endif
return dm_init_and_scan(false); return dm_init_and_scan(false);
} }
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment