[PATCH 1/2] watchdog: imxwd: Do not use mdelay when barebox is already shut down

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We should not call API functions when barebox is shut down. This may
be the case in the restart handler. Simply drop the mdelay.

Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx>
---
 drivers/watchdog/imxwd.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/watchdog/imxwd.c b/drivers/watchdog/imxwd.c
index 5ffbac7..ef64e4e 100644
--- a/drivers/watchdog/imxwd.c
+++ b/drivers/watchdog/imxwd.c
@@ -128,8 +128,6 @@ void __noreturn reset_cpu(unsigned long addr)
 	if (reset_wd)
 		reset_wd->ops->set_timeout(reset_wd, -1);
 
-	mdelay(1000);
-
 	hang();
 }
 
-- 
2.4.6


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux