Revert "gpio: set up initial state from .get_direction()"
authorTimur Tabi <timur@codeaurora.org>
Wed, 20 Dec 2017 19:10:31 +0000 (13:10 -0600)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 21 Dec 2017 12:03:41 +0000 (13:03 +0100)
commit1ca2a92b2a99323f666f1b669b7484df4bda05e4
tree67d17b6bb67939f6e8af6770a98758e09c635817
parentcaa92ee84ba02aa2619b087d81a9e2e54a2235fd
Revert "gpio: set up initial state from .get_direction()"

This reverts commit 72d3200061776264941be1b5a9bb8e926b3b30a5.

We cannot blindly query the direction of all GPIOs when the pins are
first registered.  The get_direction callback normally triggers a
read/write to hardware, but we shouldn't be touching the hardware for
an individual GPIO until after it's been properly claimed.

Signed-off-by: Timur Tabi <timur@codeaurora.org>
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib.c