mtd: nand: Add Hisilicon machine dependency

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Thu Jul 13 10:59:10 PDT 2017


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=7699f1e358ec60958a153e365901cb1e7ca62e93
Commit:     7699f1e358ec60958a153e365901cb1e7ca62e93
Parent:     2ea659a9ef488125eb46da6eb571de5eae5c43f6
Author:     Ezequiel Garcia <ezequiel at vanguardiasur.com.ar>
AuthorDate: Tue May 2 16:49:51 2017 -0300
Committer:  Boris Brezillon <boris.brezillon at free-electrons.com>
CommitDate: Mon May 15 11:59:59 2017 +0200

    mtd: nand: Add Hisilicon machine dependency
    
    The Hisilicon NAND driver is only needed for a specific
    platform, so avoid cluttering the configuration.
    
    Signed-off-by: Ezequiel Garcia <ezequiel at vanguardiasur.com.ar>
    Signed-off-by: Boris Brezillon <boris.brezillon at free-electrons.com>
---
 drivers/mtd/nand/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/mtd/nand/Kconfig b/drivers/mtd/nand/Kconfig
index c302952..effe767 100644
--- a/drivers/mtd/nand/Kconfig
+++ b/drivers/mtd/nand/Kconfig
@@ -542,6 +542,7 @@ config MTD_NAND_SUNXI
 
 config MTD_NAND_HISI504
 	tristate "Support for NAND controller on Hisilicon SoC Hip04"
+	depends on ARCH_HISI || COMPILE_TEST
 	depends on HAS_DMA
 	help
 	  Enables support for NAND controller on Hisilicon SoC Hip04.



More information about the linux-mtd-cvs mailing list