mtd: nand: MTD_NAND_MARVELL should depend on HAS_DMA

"Linux Kernel Mailing List" <[email protected]> Sat, 17 Feb 2018 18:20:25 +0000 (UTC)
Newsgroups gmane.linux.kernel.commits.head
Message-ID <[email protected]>
Web:        https://git.kernel.org/torvalds/c/f23def8038611fa362de345c540107c78edaa085
Commit:     f23def8038611fa362de345c540107c78edaa085
Parent:     ea56fb282368ea08c2a313af6b55cb597aec4db1
Refname:    refs/heads/master
Author:     Geert Uytterhoeven <[email protected]>
AuthorDate: Tue Jan 30 14:23:21 2018 +0100
Committer:  Boris Brezillon <[email protected]>
CommitDate: Mon Feb 12 10:57:20 2018 +0100

    mtd: nand: MTD_NAND_MARVELL should depend on HAS_DMA
    
    If NO_DMA=y:
    
        ERROR: "bad_dma_ops" [drivers/mtd/nand/marvell_nand.ko] undefined!
    
    Add a dependency on HAS_DMA to fix this.
    
    Fixes: 02f26ecf8c772751 ("mtd: nand: add reworked Marvell NAND controller driver")
    Signed-off-by: Geert Uytterhoeven <[email protected]>
    Acked-by: Miquel Raynal <[email protected]>
    Signed-off-by: Boris Brezillon <[email protected]>
---
 drivers/mtd/nand/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mtd/nand/Kconfig b/drivers/mtd/nand/Kconfig
index e6b8c59f2c0d..736ac887303c 100644
--- a/drivers/mtd/nand/Kconfig
+++ b/drivers/mtd/nand/Kconfig
@@ -328,7 +328,7 @@ config MTD_NAND_MARVELL
 	tristate "NAND controller support on Marvell boards"
 	depends on PXA3xx || ARCH_MMP || PLAT_ORION || ARCH_MVEBU || \
 		   COMPILE_TEST
-	depends on HAS_IOMEM
+	depends on HAS_IOMEM && HAS_DMA
 	help
 	  This enables the NAND flash controller driver for Marvell boards,
 	  including:
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html