ata: SATA_MV should depend on HAS_DMA
authorGeert Uytterhoeven <geert@linux-m68k.org>
Tue, 3 Jan 2017 18:09:44 +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: "dma_pool_alloc" [drivers/ata/sata_mv.ko] undefined!
    ERROR: "dmam_pool_create" [drivers/ata/sata_mv.ko] undefined!
    ERROR: "dma_pool_free" [drivers/ata/sata_mv.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 2c8be74..842cd34 100644 (file)
@@ -353,6 +353,7 @@ config SATA_HIGHBANK
 
 config SATA_MV
        tristate "Marvell SATA support"
+       depends on HAS_DMA
        depends on PCI || ARCH_DOVE || ARCH_MV78XX0 || \
                   ARCH_MVEBU || ARCH_ORION5X || COMPILE_TEST
        select GENERIC_PHY