projects/linux·commit 5e0899db

mtd: nand: MTD_NAND_HISI504 should depend on HAS_DMA

5e0899db · Geert Uytterhoeven <[email protected]> · 2015-03-01 10:35:52 +01:00

If NO_DMA=y:

    drivers/built-in.o: In function `hisi_nfc_probe':
    hisi504_nand.c:(.text+0x23e646): undefined reference to `dmam_alloc_coherent'

Signed-off-by: Geert Uytterhoeven <[email protected]>
Signed-off-by: Brian Norris <[email protected]>
Commit
5e0899db69e27abfdc1c6223ca74f479acdedaa6
Parents
e423c90a

Changes

1 files changed · +1 −0

FileStatusAddDelContent
drivers/mtd/nand/Kconfigmodified+1−0View file

drivers/mtd/nand/Kconfig

View file
diff --git a/drivers/mtd/nand/Kconfig b/drivers/mtd/nand/Kconfig
index 5b76a17..5897d8d 100644
--- a/drivers/mtd/nand/Kconfig
+++ b/drivers/mtd/nand/Kconfig
@@ -526,6 +526,7 @@ config MTD_NAND_SUNXI
config MTD_NAND_HISI504
tristate "Support for NAND controller on Hisilicon SoC Hip04"
+ depends on HAS_DMA
help
Enables support for NAND controller on Hisilicon SoC Hip04.