mtd: nand: flctl: Add dependency on HAS_IOMEM and HAS_DMA

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Sat Apr 5 02:59:01 EDT 2014


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=3d44dc235ec16fd3db61e1468adabff131d440bc
Commit:     3d44dc235ec16fd3db61e1468adabff131d440bc
Parent:     b2fda1296bb8e213a6bad3937326ae98c4c4773c
Author:     Richard Weinberger <richard at nod.at>
AuthorDate: Fri Jan 31 13:39:07 2014 +0100
Committer:  Brian Norris <computersforpeace at gmail.com>
CommitDate: Mon Mar 10 22:42:23 2014 -0700

    mtd: nand: flctl: Add dependency on HAS_IOMEM and HAS_DMA
    
    On archs like S390 or um this driver cannot build nor work.
    Make it depend on HAS_IOMEM and HAS_DMA to bypass build failures.
    
    drivers/built-in.o: In function `flctl_probe':
    drivers/mtd/nand/sh_flctl.c:1097: undefined reference to `devm_ioremap_resource'
    drivers/built-in.o: In function `flctl_dma_fifo0_transfer':
    drivers/mtd/nand/sh_flctl.c:368: undefined reference to `dma_map_single'
    drivers/mtd/nand/sh_flctl.c:407: undefined reference to `dma_unmap_single'
    
    Signed-off-by: Richard Weinberger <richard at nod.at>
    Signed-off-by: Brian Norris <computersforpeace at gmail.com>
---
 drivers/mtd/nand/Kconfig | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/mtd/nand/Kconfig b/drivers/mtd/nand/Kconfig
index 90ff447..a5bb738 100644
--- a/drivers/mtd/nand/Kconfig
+++ b/drivers/mtd/nand/Kconfig
@@ -459,6 +459,8 @@ config MTD_NAND_MXC
 config MTD_NAND_SH_FLCTL
 	tristate "Support for NAND on Renesas SuperH FLCTL"
 	depends on SUPERH || ARCH_SHMOBILE || COMPILE_TEST
+	depends on HAS_IOMEM
+	depends on HAS_DMA
 	help
 	  Several Renesas SuperH CPU has FLCTL. This option enables support
 	  for NAND Flash using FLCTL.



More information about the linux-mtd-cvs mailing list