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)
commit72f908c88cef42b4ad486c39967fa4d7fdffce18
tree604c44a4c5e6766a36e552140e8d8c3535456613
parent0f33be009b89d2268e94194dc4fd01a7851b6d51
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