gpio: convince line to become input in irq helper
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 22 Jun 2016 14:31:54 +0000 (16:31 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 23 Jun 2016 09:06:58 +0000 (11:06 +0200)
commit7e7c059cb50c7c72d5a393b2c34fc57de1b01b55
treef3eaefba111d62cf5fcac48f9c73058c8b5154e6
parent33265b17e06e2d84900efebfa8620d2f5bfcc5de
gpio: convince line to become input in irq helper

The generic IRQ helper library just checks if the IRQ line is
set as input before activating it for interrupts. As we
recently started to check things better with .get_dir() it
turns out that it's good to try to convince the line to become
an input before attempting to lock it as IRQ.

Reviewed-by: Björn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib.c