Browse Source

ata: ATA_BMDMA should depend on HAS_DMA

If NO_DMA=y:

    ERROR: "dmam_alloc_coherent" [drivers/ata/libata.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>
Geert Uytterhoeven 8 năm trước cách đây
mục cha
commit
7bc7ab1e63
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      drivers/ata/Kconfig

+ 1 - 0
drivers/ata/Kconfig

@@ -289,6 +289,7 @@ config SATA_SX4
 
 config ATA_BMDMA
 	bool "ATA BMDMA support"
+	depends on HAS_DMA
 	default y
 	help
 	  This option adds support for SFF ATA controllers with BMDMA