diff options
Diffstat (limited to 'drivers/gpio/gpiolib.c')
-rw-r--r-- | drivers/gpio/gpiolib.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c index 6e3c4d7a7d14..4ad3c4b276dc 100644 --- a/drivers/gpio/gpiolib.c +++ b/drivers/gpio/gpiolib.c | |||
@@ -1477,7 +1477,8 @@ static void gpiochip_set_irq_hooks(struct gpio_chip *gc) | |||
1477 | if (WARN_ON(gc->irq.irq_enable)) | 1477 | if (WARN_ON(gc->irq.irq_enable)) |
1478 | return; | 1478 | return; |
1479 | /* Check if the irqchip already has this hook... */ | 1479 | /* Check if the irqchip already has this hook... */ |
1480 | if (irqchip->irq_enable == gpiochip_irq_enable) { | 1480 | if (irqchip->irq_enable == gpiochip_irq_enable || |
1481 | irqchip->irq_mask == gpiochip_irq_mask) { | ||
1481 | /* | 1482 | /* |
1482 | * ...and if so, give a gentle warning that this is bad | 1483 | * ...and if so, give a gentle warning that this is bad |
1483 | * practice. | 1484 | * practice. |