mtd: nand: MTD_NAND_HISI504 should depend on HAS_DMA
authorGeert Uytterhoeven <geert@linux-m68k.org>
Sun, 1 Mar 2015 09:35:52 +0000 (10:35 +0100)
committerBrian Norris <computersforpeace@gmail.com>
Tue, 3 Mar 2015 06:55:56 +0000 (22:55 -0800)
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 <geert@linux-m68k.org>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/Kconfig

index 5b76a173cd95d6d59c41c47d15c081ff39473c53..5897d8d8fa5a962d896e6726edde207b99575d39 100644 (file)
@@ -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.