summaryrefslogtreecommitdiff
path: root/drivers/gpio/gpiolib.c
diff options
context:
space:
mode:
authorDmitry Osipenko <digetx@gmail.com>2018-07-17 19:10:38 +0300
committerLinus Walleij <linus.walleij@linaro.org>2018-07-29 23:38:35 +0300
commitf78709a5d4114edc21a5d86586ed5e56e284f2bd (patch)
tree6e9b948cffc07f5ebf33498c3238ef60a94d9640 /drivers/gpio/gpiolib.c
parentc19fdaeea0aa1938cf6a35aa97f9ea6fd8b22476 (diff)
downloadlinux-f78709a5d4114edc21a5d86586ed5e56e284f2bd.tar.xz
gpio: tegra: Fix tegra_gpio_irq_set_type()
Commit 36b312792b97 ("gpiolib: Respect error code of ->get_direction()") broke tegra_gpio_irq_set_type() because requesting of GPIO direction must be done after enabling GPIO function for a pin. This patch fixes drivers probe failure like this: gpio gpiochip0: (tegra-gpio): gpiochip_lock_as_irq: cannot get GPIO direction tegra-gpio 6000d000.gpio: unable to lock Tegra GPIO 144 as IRQ Fixes: 36b312792b97 ("gpiolib: Respect error code of ->get_direction()") Signed-off-by: Dmitry Osipenko <digetx@gmail.com> Acked-by: Jon Hunter <jonathanh@nvidia.com> Tested-by: Jon Hunter <jonathanh@nvidia.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpiolib.c')
0 files changed, 0 insertions, 0 deletions