summaryrefslogtreecommitdiff
path: root/drivers/gpio/gpio-tegra.c
diff options
context:
space:
mode:
authorKevin Hilman <khilman@baylibre.com>2017-08-23 01:37:31 +0300
committerKevin Hilman <khilman@baylibre.com>2017-08-23 01:37:31 +0300
commit4db26f83a7a1f8b844e4543cd82a87bee1d224e2 (patch)
tree260f68e5671b902344f8b568a45bd6df645b5bcb /drivers/gpio/gpio-tegra.c
parentb16c71c9f6ff50d4e4398cefd9113d82ee2fe8e6 (diff)
parentaae4e7a8bc44722fe70d58920a36916b1043195e (diff)
downloadlinux-4db26f83a7a1f8b844e4543cd82a87bee1d224e2.tar.xz
Merge tag 'v4.13-rc4' into v4.14/dt64
Linux 4.13-rc4
Diffstat (limited to 'drivers/gpio/gpio-tegra.c')
-rw-r--r--drivers/gpio/gpio-tegra.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpio/gpio-tegra.c b/drivers/gpio/gpio-tegra.c
index 88529d3c06c9..506c6a67c5fc 100644
--- a/drivers/gpio/gpio-tegra.c
+++ b/drivers/gpio/gpio-tegra.c
@@ -360,7 +360,7 @@ static void tegra_gpio_irq_handler(struct irq_desc *desc)
{
int port;
int pin;
- int unmasked = 0;
+ bool unmasked = false;
int gpio;
u32 lvl;
unsigned long sta;
@@ -384,8 +384,8 @@ static void tegra_gpio_irq_handler(struct irq_desc *desc)
* before executing the handler so that we don't
* miss edges
*/
- if (lvl & (0x100 << pin)) {
- unmasked = 1;
+ if (!unmasked && lvl & (0x100 << pin)) {
+ unmasked = true;
chained_irq_exit(chip, desc);
}