From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZUU3V-0002pY-VH for barebox@lists.infradead.org; Wed, 26 Aug 2015 06:19:30 +0000 From: Sascha Hauer Date: Wed, 26 Aug 2015 08:19:00 +0200 Message-Id: <1440569941-3255-1-git-send-email-s.hauer@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 1/2] watchdog: imxwd: Do not use mdelay when barebox is already shut down To: Barebox List 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 --- 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@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox