Marco Felsch be7ae45cfe gpio: fix getting nonexclusive gpiods from DT
Since commit ec757001c818 ("gpio: Enable nonexclusive gpiods from DT
nodes") we are able to get GPIOD_FLAGS_BIT_NONEXCLUSIVE marked gpios.
Currently the gpiolib uses the wrong flags variable for the check. We
need to check the gpiod_flags instead of the of_gpio_flags else we
return -EBUSY for GPIOD_FLAGS_BIT_NONEXCLUSIVE marked and requested
gpiod's.

Fixes: ec757001c818 gpio: Enable nonexclusive gpiods from DT nodes
Cc: stable@vger.kernel.org
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
[Bartosz: the function was moved to gpiolib-of.c so updated the patch]
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
2019-10-01 11:50:05 +02:00
..
2018-05-16 14:35:24 +02:00
2019-09-03 16:04:19 +02:00
2019-07-23 18:59:05 +03:00
2019-06-27 15:56:50 +01:00
2018-01-09 14:51:00 +01:00
2019-09-16 15:52:38 -07:00
2019-09-16 15:52:38 -07:00
2019-08-23 11:41:20 +02:00
2019-06-14 10:16:15 +02:00