]> git.baikalelectronics.ru Git - kernel.git/commit
gpio / ACPI: use *_cansleep version of gpiod_get/set APIs
authorAaron Lu <aaron.lu@intel.com>
Tue, 20 May 2014 09:07:38 +0000 (17:07 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 23 May 2014 12:36:24 +0000 (14:36 +0200)
commit14e5b01ec7ff3827687761263c4725779438603c
treebfb3aed6c695b9485c089b9411d441b30b2febe1
parent93ff44dddde0ecd5e78433e8e1a5962b3d56bec9
gpio / ACPI: use *_cansleep version of gpiod_get/set APIs

The GPIO operation region handler should be called where sleep is
allowed, so we should use the *_cansleep version of gpiod_get/set APIs
or we will get a warning message complaining invalid context if the GPIO
chip has the cansleep flag set.

Signed-off-by: Aaron Lu <aaron.lu@intel.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Acked-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib-acpi.c