diff --git a/drivers/gpio/gpio_gecko.c b/drivers/gpio/gpio_gecko.c index e9730f6dac8..942e56b4096 100644 --- a/drivers/gpio/gpio_gecko.c +++ b/drivers/gpio/gpio_gecko.c @@ -26,11 +26,7 @@ #if DT_NODE_HAS_PROP(id, peripheral_id) #define GET_GECKO_GPIO_INDEX(id) DT_INST_PROP(id, peripheral_id) #else -#if defined(CONFIG_SOC_SERIES_EFR32BG22) || \ - defined(CONFIG_SOC_SERIES_EFR32BG27) || \ - defined(CONFIG_SOC_SERIES_EFR32MG21) || \ - defined(CONFIG_SOC_SERIES_EFR32MG24) || \ - defined(CONFIG_SOC_SERIES_EFR32ZG23) +#if defined(CONFIG_SOC_FAMILY_SILABS_S2) #define GECKO_GPIO_PORT_ADDR_SPACE_SIZE sizeof(GPIO_PORT_TypeDef) #else #define GECKO_GPIO_PORT_ADDR_SPACE_SIZE sizeof(GPIO_P_TypeDef)