mirror of
https://github.com/torvalds/linux.git
synced 2026-11-24 15:33:28 +00:00
The power-off call is done in a context that must be able to sleep, so use gpiod_set_value_cansleep instead of the atomic gpiod_set_value call. This fixes a kernel warning at shutdown when the gpio is controlled through an IO expander for example. Signed-off-by: Mike Looijmans <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>