diff mbox

[U-Boot,v5,2/3] timer: start a new dm_timer after relocation

Message ID 1444266209-28920-2-git-send-email-thomas@wytron.com.tw
State Superseded
Delegated to: Thomas Chou
Headers show

Commit Message

Thomas Chou Oct. 8, 2015, 1:03 a.m. UTC
Start a new dm_timer after relocation, just in case the
timer has been used in per-relocation.

Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
---
 common/board_r.c | 3 +++
 1 file changed, 3 insertions(+)

Comments

Simon Glass Oct. 8, 2015, 4:09 p.m. UTC | #1
On 8 October 2015 at 02:03, Thomas Chou <thomas@wytron.com.tw> wrote:
> Start a new dm_timer after relocation, just in case the
> timer has been used in per-relocation.
>
> Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
> ---
>  common/board_r.c | 3 +++
>  1 file changed, 3 insertions(+)

Acked-by: Simon Glass <sjg@chromium.org>
diff mbox

Patch

diff --git a/common/board_r.c b/common/board_r.c
index f8c1baa..aaf390e 100644
--- a/common/board_r.c
+++ b/common/board_r.c
@@ -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_DM_TIMER
+	gd->dm_timer = NULL;
+#endif
 	return dm_init_and_scan(false);
 }
 #endif