drivers: igpio: Do not require GPIO interrupts to be present
Some SoC's do not have a GPIO interrupt connected Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
This commit is contained in:
parent
a5ec72418c
commit
94bbf23e7c
1 changed files with 2 additions and 1 deletions
|
@ -234,7 +234,8 @@ static const struct gpio_driver_api mcux_igpio_driver_api = {
|
|||
\
|
||||
static int mcux_igpio_##n##_init(const struct device *dev) \
|
||||
{ \
|
||||
MCUX_IGPIO_IRQ_INIT(n, 0); \
|
||||
IF_ENABLED(DT_INST_IRQ_HAS_IDX(n, 0), \
|
||||
(MCUX_IGPIO_IRQ_INIT(n, 0);)) \
|
||||
\
|
||||
IF_ENABLED(DT_INST_IRQ_HAS_IDX(n, 1), \
|
||||
(MCUX_IGPIO_IRQ_INIT(n, 1);)) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue