Skip to content

Commit

Permalink
gpio-poweroff: Disable the WARN
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
pelwell committed Nov 22, 2023
1 parent 9e22e98 commit d189998
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/power/reset/gpio-poweroff.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ static int gpio_poweroff_do_poweroff(struct sys_off_data *data)
/* give it some time */
mdelay(gpio_poweroff->timeout_ms);

WARN_ON(1);
//WARN_ON(1);

return NOTIFY_DONE;
}
Expand Down

0 comments on commit d189998

Please sign in to comment.