configs/stm32f429i-disco: Separate SPI4 from MTD init. I was trying to attach a non-MTD peripheral to an STM32F429I Discovery Board's SPI4 port and was hitting compilation problems, since CONFIG_MTD and thus 'struct mtd_geometry_s' was not defined. This patch separates SPI4 initialization logic from MTD initialization logic.

This commit is contained in:
Michael Jung 2018-02-05 06:35:40 -06:00 committed by Gregory Nutt
parent 873ffd13bc
commit cbd8fa31d1

View File

@ -103,6 +103,8 @@ int stm32_bringup(void)
{ {
#if defined(CONFIG_STM32_SPI4) #if defined(CONFIG_STM32_SPI4)
FAR struct spi_dev_s *spi; FAR struct spi_dev_s *spi;
#endif
#if defined(CONFIG_MTD)
FAR struct mtd_dev_s *mtd; FAR struct mtd_dev_s *mtd;
FAR struct mtd_geometry_s geo; FAR struct mtd_geometry_s geo;
#endif #endif