ata: SATA_HIGHBANK should depend on HAS_DMA
authorGeert Uytterhoeven <geert@linux-m68k.org>
Tue, 3 Jan 2017 18:09:45 +0000 (19:09 +0100)
committerTejun Heo <tj@kernel.org>
Fri, 6 Jan 2017 16:32:43 +0000 (11:32 -0500)
If NO_DMA=y:

    ERROR: "bad_dma_ops" [drivers/ata/sata_highbank.ko] undefined!

Add a dependency on HAS_DMA to fix this.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/Kconfig

index 842cd34..47d9356 100644 (file)
@@ -344,6 +344,7 @@ config SATA_DWC_VDEBUG
 
 config SATA_HIGHBANK
        tristate "Calxeda Highbank SATA support"
+       depends on HAS_DMA
        depends on ARCH_HIGHBANK || COMPILE_TEST
        help
          This option enables support for the Calxeda Highbank SoC's