]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
spi: stm32-qspi: Fix W=1 build warning
authorPatrice Chotard <patrice.chotard@foss.st.com>
Fri, 4 Jun 2021 07:50:09 +0000 (09:50 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 4 Jun 2021 14:27:11 +0000 (15:27 +0100)
Fix the following compilation warning using W=1 build:
arm-linux-gnueabi-ld: drivers/spi/spi-stm32-qspi.o: in function `stm32_qspi_poll_status':

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Link: https://lore.kernel.org/r/20210604075009.25914-1-patrice.chotard@foss.st.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/Kconfig

index f4481fe48bf0698fbf5d371353060316473e48b4..e71a4c514f7bd5e62cd6139e6793ba4d17d05ec2 100644 (file)
@@ -806,6 +806,7 @@ config SPI_STM32_QSPI
        tristate "STMicroelectronics STM32 QUAD SPI controller"
        depends on ARCH_STM32 || COMPILE_TEST
        depends on OF
+       depends on SPI_MEM
        help
          This enables support for the Quad SPI controller in master mode.
          This driver does not support generic SPI. The implementation only