提交 b16a0168 编写于 作者: G Geert Uytterhoeven 提交者: Tejun Heo

ata: AHCI and other non-SFF native drivers should depend on HAS_DMA

If NO_DMA=y:

    ERROR: "bad_dma_ops" [drivers/ata/libahci_platform.ko] undefined!
    ERROR: "dmam_alloc_coherent" [drivers/ata/libahci.ko] undefined!

Add a block dependency on HAS_DMA to fix this.
Signed-off-by: NGeert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: NTejun Heo <tj@kernel.org>
上级 7bc7ab1e
...@@ -80,6 +80,8 @@ config SATA_PMP ...@@ -80,6 +80,8 @@ config SATA_PMP
This option adds support for SATA Port Multipliers This option adds support for SATA Port Multipliers
(the SATA version of an ethernet hub, or SAS expander). (the SATA version of an ethernet hub, or SAS expander).
if HAS_DMA
comment "Controllers with non-SFF native interface" comment "Controllers with non-SFF native interface"
config SATA_AHCI config SATA_AHCI
...@@ -232,6 +234,8 @@ config SATA_SIL24 ...@@ -232,6 +234,8 @@ config SATA_SIL24
If unsure, say N. If unsure, say N.
endif # HAS_DMA
config ATA_SFF config ATA_SFF
bool "ATA SFF support (for legacy IDE and PATA)" bool "ATA SFF support (for legacy IDE and PATA)"
default y default y
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册