Skip to content

Commit 8b7b012

Browse files
committed
drivers: flash: stm32: qspi: always include gpio header
Always include gpio header. Signed-off-by: Georgij Cernysiov <[email protected]>
1 parent 283d5fa commit 8b7b012

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/flash/flash_stm32_qspi.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include <zephyr/drivers/flash.h>
2121
#include <zephyr/drivers/dma.h>
2222
#include <zephyr/drivers/dma/dma_stm32.h>
23+
#include <zephyr/drivers/gpio.h>
2324

2425
#if DT_INST_NODE_HAS_PROP(0, spi_bus_width) && \
2526
DT_INST_PROP(0, spi_bus_width) == 4
@@ -29,9 +30,7 @@
2930
#endif
3031

3132
#define STM32_QSPI_RESET_GPIO DT_INST_NODE_HAS_PROP(0, reset_gpios)
32-
#if STM32_QSPI_RESET_GPIO
33-
#include <zephyr/drivers/gpio.h>
34-
#endif
33+
3534
#include <stm32_ll_dma.h>
3635

3736
#include "spi_nor.h"

0 commit comments

Comments
 (0)