Revert "gpiolib: request the gpio before querying its direction"
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 31 Aug 2017 05:58:17 +0000 (07:58 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 31 Aug 2017 07:05:30 +0000 (09:05 +0200)
commit9e238e380c2a8aff21d37f713b5c24b079a726a5
treebc8e0be7574415a20f4232e175ea34bcdc45f810
parent1253baaafff03c695e49d6c63956f4ccf12dc0c8
Revert "gpiolib: request the gpio before querying its direction"

This reverts commit 108d23e322a247d9f89ba2e2742520ead0944cc9.
It turns out this causes a regression on the OMAP, Marvell
and Renesas.

Reported-by: Tony Lindgren <tony@atomide.com>
Reported-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Reported-by: Jacopo Mondi <jacopo@jmondi.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib.c