spi: SPI_TI_QSPI should depend on HAS_DMA
authorGeert Uytterhoeven <geert@linux-m68k.org>
Thu, 4 May 2017 07:37:18 +0000 (09:37 +0200)
committerMark Brown <broonie@kernel.org>
Sun, 14 May 2017 09:49:55 +0000 (18:49 +0900)
If NO_DMA=y:

    ERROR: "bad_dma_ops" [drivers/spi/spi-ti-qspi.ko] undefined!

Add a dependency on HAS_DMA to fix this.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/Kconfig

index 1761c9004fc1149e8552b86525613e93c2b49cf4..097883362036416f9020b082e3f1946de09b3b04 100644 (file)
@@ -457,6 +457,7 @@ config SPI_OMAP24XX
 
 config SPI_TI_QSPI
        tristate "DRA7xxx QSPI controller support"
+       depends on HAS_DMA
        depends on ARCH_OMAP2PLUS || COMPILE_TEST
        help
          QSPI master controller for DRA7xxx used for flash devices.