diff --git a/drivers/gpio/gpio_intel_apl.c b/drivers/gpio/gpio_intel_apl.c index 3b1e9e22c5..a5cf525c81 100644 --- a/drivers/gpio/gpio_intel_apl.c +++ b/drivers/gpio/gpio_intel_apl.c @@ -243,7 +243,7 @@ static int gpio_intel_apl_config(struct device *dev, int access_op, /* setup interrupt if desired */ if (flags & GPIO_INT) { /* invert signal for interrupt controller */ - if (flags & GPIO_INT_ACTIVE_LOW) { + if ((flags & GPIO_INT_ACTIVE_HIGH) == GPIO_INT_ACTIVE_LOW) { cfg0 |= PAD_CFG0_RXINV; }