mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 01:49:46 +00:00
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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user