mtd: nand: Add OX820 NAND hardware dependency
authorJean Delvare <jdelvare@suse.de>
Mon, 9 Jan 2017 10:58:14 +0000 (11:58 +0100)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Mon, 30 Jan 2017 10:51:02 +0000 (11:51 +0100)
The oxnas NAND driver is only needed for a specific platform, do
not propose it on other platforms unless build-testing.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Fixes: 668592492409 ("mtd: nand: Add OX820 NAND Support")
Cc: Rob Herring <robh@kernel.org>
Cc: Neil Armstrong <narmstrong@baylibre.com>
Cc: Boris Brezillon <boris.brezillon@free-electrons.com>
Cc: Richard Weinberger <richard@nod.at>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Brian Norris <computersforpeace@gmail.com>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Cyrille Pitchen <cyrille.pitchen@atmel.com>
Acked-by: Marek Vasut <marek.vasut@gmail.com>
Acked-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/Kconfig

index c6585454f1029d3196d373a6ea170c43be5f0e17..6d4d5672d1d8ea0945cdaebcbf06d17f5984017b 100644 (file)
@@ -426,6 +426,7 @@ config MTD_NAND_ORION
 
 config MTD_NAND_OXNAS
        tristate "NAND Flash support for Oxford Semiconductor SoC"
+       depends on ARCH_OXNAS || COMPILE_TEST
        depends on HAS_IOMEM
        help
          This enables the NAND flash controller on Oxford Semiconductor SoCs.