mtd: MTD_NAND_DENALI should depend on HAS_DMA

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Fri Aug 30 16:59:04 EDT 2013


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=da887588af616236e55976039debd0a877a4bf92
Commit:     da887588af616236e55976039debd0a877a4bf92
Parent:     44a417fa0fbf41a48f09cf90d06550764b530c0e
Author:     Geert Uytterhoeven <geert at linux-m68k.org>
AuthorDate: Sun Aug 18 13:03:59 2013 +0200
Committer:  David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Fri Aug 30 21:42:24 2013 +0100

    mtd: MTD_NAND_DENALI should depend on HAS_DMA
    
    If NO_DMA=y:
    
    drivers/built-in.o: In function `denali_remove':
    drivers/mtd/nand/denali.c:1605: undefined reference to `dma_unmap_single'
    drivers/built-in.o: In function `denali_read_page_raw':
    drivers/mtd/nand/denali.c:1190: undefined reference to `dma_sync_single_for_cpu'
    drivers/built-in.o: In function `denali_read_page':
    drivers/mtd/nand/denali.c:1140: undefined reference to `dma_sync_single_for_cpu'
    drivers/built-in.o: In function `write_page':
    drivers/mtd/nand/denali.c:1051: undefined reference to `dma_sync_single_for_cpu'
    drivers/built-in.o: In function `denali_init':
    drivers/mtd/nand/denali.c:1433: undefined reference to `dma_set_mask'
    drivers/mtd/nand/denali.c:1438: undefined reference to `dma_map_single'
    drivers/mtd/nand/denali.c:1442: undefined reference to `dma_mapping_error'
    
    Signed-off-by: Geert Uytterhoeven <geert at linux-m68k.org>
    Signed-off-by: Artem Bityutskiy <artem.bityutskiy at linux.intel.com>
    Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
 drivers/mtd/nand/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/mtd/nand/Kconfig b/drivers/mtd/nand/Kconfig
index 86c135b..e28021c 100644
--- a/drivers/mtd/nand/Kconfig
+++ b/drivers/mtd/nand/Kconfig
@@ -43,6 +43,7 @@ config MTD_SM_COMMON
 
 config MTD_NAND_DENALI
         tristate "Support Denali NAND controller"
+        depends on HAS_DMA
         help
 	  Enable support for the Denali NAND controller.  This should be
 	  combined with either the PCI or platform drivers to provide device



More information about the linux-mtd-cvs mailing list