]> git.baikalelectronics.ru Git - kernel.git/commit
gpio-poweroff: Use gpiod_set_value_cansleep
authorMike Looijmans <mike.looijmans@topic.nl>
Tue, 24 Apr 2018 11:10:30 +0000 (13:10 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.co.uk>
Wed, 25 Apr 2018 21:05:59 +0000 (23:05 +0200)
commite893bf3fc1c97aedb4f1a1f1cf3fea2e1f57ce69
tree44e40c567773892bbf00e43dacbce8d770fa95a6
parent5d30052dd442074c10ab35b64bd53a3dc43cea79
gpio-poweroff: Use gpiod_set_value_cansleep

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 <mike.looijmans@topic.nl>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
drivers/power/reset/gpio-poweroff.c