drivers: gpio: mcux_igpio: fix infinite loop

Avoid entering an infinite loop when configuring the the IGPIO IRQ.

Fixes 50129f8dd7
Fixes #24579

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
This commit is contained in:
Henrik Brix Andersen 2020-04-22 14:49:39 +02:00 committed by Anas Nashif
parent cc3ccef40d
commit b29c15ed09

View file

@ -232,7 +232,7 @@ static const struct gpio_driver_api mcux_igpio_driver_api = {
DEVICE_GET(mcux_igpio_##n), 0); \
\
irq_enable(DT_INST_IRQ_BY_IDX(n, i, irq)); \
} while (1)
} while (0)
#define MCUX_IGPIO_INIT(n) \
static int mcux_igpio_##n##_init(struct device *dev); \