Skip to content

Commit

Permalink
ata: AHCI and other non-SFF native drivers should depend on HAS_DMA
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Geert Uytterhoeven authored and Tejun Heo committed Jan 6, 2017
1 parent 7bc7ab1 commit b16a016
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/ata/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b16a016

Please sign in to comment.