diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2017-01-03 19:09:47 +0100 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2017-01-06 11:32:43 -0500 |
commit | b16a0168c41f9379476b5b5585071319078c542d (patch) | |
tree | fa69d55d8614b196c77bdd6330340d27d94dea4e /drivers/ata/Kconfig | |
parent | 7bc7ab1e63dfe004931502f90ce7020e375623da (diff) | |
download | linux-b16a0168c41f9379476b5b5585071319078c542d.tar.bz2 |
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: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'drivers/ata/Kconfig')
-rw-r--r-- | drivers/ata/Kconfig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig index 5d16fc4fa46c..38318aaf29d3 100644 --- a/drivers/ata/Kconfig +++ b/drivers/ata/Kconfig @@ -80,6 +80,8 @@ config SATA_PMP This option adds support for SATA Port Multipliers (the SATA version of an ethernet hub, or SAS expander). +if HAS_DMA + comment "Controllers with non-SFF native interface" config SATA_AHCI @@ -232,6 +234,8 @@ config SATA_SIL24 If unsure, say N. +endif # HAS_DMA + config ATA_SFF bool "ATA SFF support (for legacy IDE and PATA)" default y |