diff --git a/configs/stm32f429i-disco/src/stm32_bringup.c b/configs/stm32f429i-disco/src/stm32_bringup.c index 821ddeb199..3ec0651fe9 100644 --- a/configs/stm32f429i-disco/src/stm32_bringup.c +++ b/configs/stm32f429i-disco/src/stm32_bringup.c @@ -103,6 +103,8 @@ int stm32_bringup(void) { #if defined(CONFIG_STM32_SPI4) FAR struct spi_dev_s *spi; +#endif +#if defined(CONFIG_MTD) FAR struct mtd_dev_s *mtd; FAR struct mtd_geometry_s geo; #endif