From bcf74f4775f82ffc907ed6360d3a7bf5fb688fb1 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Wed, 22 Nov 2023 13:05:00 +0000 Subject: [PATCH 401/697] gpio-poweroff: Disable the WARN With the new support for a chain of sys_off handlers, gpio-poweroff does not disable a normal shutdown (though it does delay it). There is therefore no need for the noisy WARN from the kernel. Signed-off-by: Phil Elwell --- drivers/power/reset/gpio-poweroff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/power/reset/gpio-poweroff.c +++ b/drivers/power/reset/gpio-poweroff.c @@ -44,7 +44,7 @@ static int gpio_poweroff_do_poweroff(str /* give it some time */ mdelay(gpio_poweroff->timeout_ms); - WARN_ON(1); + //WARN_ON(1); return NOTIFY_DONE; }