diff options
| -rw-r--r-- | drivers/gpio/gpio-tegra.c | 6 |
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) | |||
| 360 | { | 360 | { |
| 361 | int port; | 361 | int port; |
| 362 | int pin; | 362 | int pin; |
| 363 | int unmasked = 0; | 363 | bool unmasked = false; |
| 364 | int gpio; | 364 | int gpio; |
| 365 | u32 lvl; | 365 | u32 lvl; |
| 366 | unsigned long sta; | 366 | unsigned long sta; |
| @@ -384,8 +384,8 @@ static void tegra_gpio_irq_handler(struct irq_desc *desc) | |||
| 384 | * before executing the handler so that we don't | 384 | * before executing the handler so that we don't |
| 385 | * miss edges | 385 | * miss edges |
| 386 | */ | 386 | */ |
| 387 | if (lvl & (0x100 << pin)) { | 387 | if (!unmasked && lvl & (0x100 << pin)) { |
| 388 | unmasked = 1; | 388 | unmasked = true; |
| 389 | chained_irq_exit(chip, desc); | 389 | chained_irq_exit(chip, desc); |
| 390 | } | 390 | } |
| 391 | 391 | ||
