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 <phil@raspberrypi.com>
This commit is contained in:
Phil Elwell
2023-11-22 13:05:00 +00:00
committed by Dom Cobley
parent 9bd0b71309
commit 3b7bcca0d3

View File

@@ -50,7 +50,7 @@ static int gpio_poweroff_do_poweroff(struct sys_off_data *data)
* Warn the user that the attempt to poweroff via gpio-poweroff * Warn the user that the attempt to poweroff via gpio-poweroff
* has gone wrong. * has gone wrong.
*/ */
WARN(1, "Failed to poweroff via gpio-poweroff mechanism\n"); //WARN(1, "Failed to poweroff via gpio-poweroff mechanism\n");
return NOTIFY_DONE; return NOTIFY_DONE;
} }