diff --git a/drivers/gpio/gpio_mchp_xec_v2.c b/drivers/gpio/gpio_mchp_xec_v2.c index cbe7ee5fbbe..dec401ed027 100644 --- a/drivers/gpio/gpio_mchp_xec_v2.c +++ b/drivers/gpio/gpio_mchp_xec_v2.c @@ -380,12 +380,12 @@ static const struct gpio_driver_api gpio_xec_driver_api = { }; #define XEC_GPIO_PORT_FLAGS(n) \ - ((DT_IRQ_HAS_CELL(DT_DRV_INST(n), irq)) ? GPIO_INT_ENABLE : 0) + ((DT_INST_IRQ_HAS_CELL(n, irq)) ? GPIO_INT_ENABLE : 0) #define XEC_GPIO_PORT(n) \ static int gpio_xec_port_init_##n(const struct device *dev) \ { \ - if (!(DT_IRQ_HAS_CELL(DT_DRV_INST(n), irq))) { \ + if (!(DT_INST_IRQ_HAS_CELL(n, irq))) { \ return 0; \ } \ \