mtd: nand: Add Mediatek machine dependency
authorEzequiel Garcia <ezequiel@vanguardiasur.com.ar>
Tue, 2 May 2017 19:49:52 +0000 (16:49 -0300)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Mon, 15 May 2017 10:00:29 +0000 (12:00 +0200)
The Mediatek NAND driver is only needed for a specific
platform, so avoid cluttering the configuration.

Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/Kconfig

index effe767fc3471ac029dbe94f4062ff31bcb29e30..0bd2319d3035c7398bdd2ed7d0acac948bd2a792 100644 (file)
@@ -556,6 +556,7 @@ config MTD_NAND_QCOM
 
 config MTD_NAND_MTK
        tristate "Support for NAND controller on MTK SoCs"
+       depends on ARCH_MEDIATEK || COMPILE_TEST
        depends on HAS_DMA
        help
          Enables support for NAND controller on MTK SoCs.