gpio: tegra: use new gpio_lock_as_irq() API
authorStephen Warren <swarren@nvidia.com>
Wed, 16 Oct 2013 19:25:33 +0000 (13:25 -0600)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 17 Oct 2013 08:51:53 +0000 (10:51 +0200)
commitdf231f280f0051e8de05a1f31c13b2ce2a761c3f
tree55e3a4549b2a3a99ee7725faabe2d6b0cd581e4e
parentbd0bf46844ad79c1360eebc73bf6f1e4c31b39fb
gpio: tegra: use new gpio_lock_as_irq() API

Whenever an IRQ is claimed or freed, call gpio_lock_as_irq() or
gpio_unlock_as_irq() on the associated GPIO, to prevent that GPIO from
being configured in a manner incompatible with an interrupt.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Javier Martinez Canillas <javier@dowhile0.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-tegra.c