diff --git a/drivers/gpio/gpio_xlnx_ps.c b/drivers/gpio/gpio_xlnx_ps.c index e1f7e729bd0..22eadcf8037 100644 --- a/drivers/gpio/gpio_xlnx_ps.c +++ b/drivers/gpio/gpio_xlnx_ps.c @@ -94,11 +94,10 @@ static void gpio_xlnx_ps_isr(const struct device *dev) * devices for the parent controller device's config data struct * specified in the device tree. */ -#define GPIO_XLNX_PS_CHILD_CONCAT(idx) DEVICE_DT_GET(idx), #define GPIO_XLNX_PS_GEN_BANK_ARRAY(idx)\ static const struct device *const gpio_xlnx_ps##idx##_banks[] = {\ - DT_FOREACH_CHILD_STATUS_OKAY(DT_DRV_INST(idx), GPIO_XLNX_PS_CHILD_CONCAT)\ + DT_INST_FOREACH_CHILD_STATUS_OKAY_SEP(idx, DEVICE_DT_GET, (,))\ }; /* Device config & run-time data struct creation macros */