]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: Fix gpio direction flags not getting set
authorAdrian Hunter <adrian.hunter@intel.com>
Mon, 22 Sep 2014 08:01:16 +0000 (11:01 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 24 Sep 2014 07:47:12 +0000 (09:47 +0200)
commitd51860ca5f7a2817dde52601eb50b9785ae71992
tree604c44a4c5e6766a36e552140e8d8c3535456613
parent360d1beb3f670534d48788df77bff0dc1a2a35c8
gpio: Fix gpio direction flags not getting set

GPIO direction flags are not getting set because
an 'if' statement is the wrong way around.

Cc: Stable <stable@vger.kernel.org> # 3.15+
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Acked-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib.c