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:
parent
cc3ccef40d
commit
b29c15ed09
|
@ -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); \
|
||||
|
|
Loading…
Reference in a new issue