mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-18 13:11:31 +00:00
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: Thomas Chou <thomas@wytron.com.tw> Acked-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
c8a7ba9e6a
commit
8f41b8785b
1 changed files with 3 additions and 0 deletions
|
@ -290,6 +290,9 @@ static int initr_dm(void)
|
|||
/* Save the pre-reloc driver model and start a new one */
|
||||
gd->dm_root_f = gd->dm_root;
|
||||
gd->dm_root = NULL;
|
||||
#ifdef CONFIG_TIMER
|
||||
gd->timer = NULL;
|
||||
#endif
|
||||
return dm_init_and_scan(false);
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue